Skip to content

Commit 1b3788c

Browse files
author
zored
committed
[master] Fix CS
1 parent cb57aae commit 1b3788c

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
- macos-latest
1313
steps:
1414
- uses: actions/setup-go@v2
15-
with: { go-version: ^1.14 }
15+
with: { go-version: ^1.14.5 }
1616
- uses: actions/checkout@v2
1717
- run: go test
18-
- run: go build -o edit
18+
- run: go build -o zored-edit-${{ matrix.os }}-${{ github.ref }}
1919
- uses: softprops/action-gh-release@v1
2020
if: "startsWith(github.ref, 'refs/tags/v')"
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
with:
2424
files: |
25-
edit-${{ matrix.os }}-${{ github.ref }}
25+
zored-edit-*

src/service/formatters/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ type (
66
IFormatter interface {
77
Format(tokens_ tokens.Tokens, options *Options) string
88
}
9-
)
9+
)

src/service/navigation/position.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func NewPosition(line int, column int) *Position { return &Position{Column: colu
1212
func NewZeroPosition() *Position { return &Position{Column: BadNumber, Line: BadNumber} }
1313
func NewStartPosition() *Position { return &Position{Column: 1, Line: 1} }
1414

15-
func (p *Position) String() string { return fmt.Sprintf("%d:%d", p.Line, p.Column) }
15+
func (p *Position) String() string { return fmt.Sprintf("%d:%d", p.Line, p.Column) }
1616
func (p *Position) Wrong() bool { return p.Column == BadNumber }
1717
func (p *Position) LineIndex() int { return p.Line - 1 }
1818
func (p *Position) ColumnIndex() int { return p.Column - 1 }

src/service/navigation/position_interval.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ type Interval struct {
44
Start, Stop *Position
55
}
66

7-
func NewEmptyInterval() *Interval {return &Interval{Start: NewZeroPosition(), Stop: NewZeroPosition()}}
8-
func NewInterval(start *Position, stop *Position) *Interval {return &Interval{Start: start, Stop: stop}}
7+
func NewEmptyInterval() *Interval { return &Interval{Start: NewZeroPosition(), Stop: NewZeroPosition()} }
8+
func NewInterval(start *Position, stop *Position) *Interval {
9+
return &Interval{Start: start, Stop: stop}
10+
}

src/service/tokenizers/tokenizer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ func (p *tokenizer) getWrapperStart(linesTillCursor []string, cursor *navigation
9393
}
9494

9595
func (p *tokenizer) getWrapperEnd(
96-
linesTillCursor []string,
97-
startPosition *navigation.Position,
98-
wrapper *tokens.Wrappers,
99-
separator_ tokens.Separator,
100-
fileScanner *bufio.Scanner,
96+
linesTillCursor []string,
97+
startPosition *navigation.Position,
98+
wrapper *tokens.Wrappers,
99+
separator_ tokens.Separator,
100+
fileScanner *bufio.Scanner,
101101
) (*navigation.Position, tokens.Tokens, error) {
102102
result := navigation.NewPosition(startPosition.Line, startPosition.Column)
103103
resultTokensBuffer := tokens.NewTokenBuffer(wrapper, separator_)

0 commit comments

Comments
 (0)