Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 10, 2018
1 parent 83f36b9 commit 2a21846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions antibodylib/antibody_test.go
Expand Up @@ -36,6 +36,7 @@ func TestAntibody(t *testing.T) {
assert.Contains(t, sh, `export PATH="/tmp:$PATH"`)
assert.Contains(t, sh, `export PATH="`+home+`/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-ports:$PATH"`)
assert.Contains(t, sh, `export PATH="`+home+`/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-jvm:$PATH"`)
// nolint: lll
assert.Contains(t, sh, `source `+home+`/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-zsh-open-pr/git-open-pr.plugin.zsh`)
}

Expand Down
1 change: 1 addition & 0 deletions antibodylib/sort.go
Expand Up @@ -30,6 +30,7 @@ func (slice indexedLines) Swap(i, j int) {
// Sort all lines and join them in a string
func (slice indexedLines) String() string {
sort.Sort(slice)
// nolint: prealloc
var lines []string
for _, line := range slice {
lines = append(lines, line.line)
Expand Down

0 comments on commit 2a21846

Please sign in to comment.