From 2a218463cad2685beb435c21caf92128621bea81 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 10 Jul 2018 14:15:42 -0700 Subject: [PATCH] fix: lint --- antibodylib/antibody_test.go | 1 + antibodylib/sort.go | 1 + 2 files changed, 2 insertions(+) diff --git a/antibodylib/antibody_test.go b/antibodylib/antibody_test.go index 7e6b1a2..48226be 100644 --- a/antibodylib/antibody_test.go +++ b/antibodylib/antibody_test.go @@ -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`) } diff --git a/antibodylib/sort.go b/antibodylib/sort.go index ed36989..a22dff9 100644 --- a/antibodylib/sort.go +++ b/antibodylib/sort.go @@ -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)