diff options
author | Cameron Moore <moorereason@gmail.com> | 2017-09-25 21:25:33 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-29 16:23:16 +0200 |
commit | 47fdfd5196cd24a23b30afe1d88969ffb413ab59 (patch) | |
tree | e2b4dc5bb5341ab2d8588879fb733ee888b9164b /helpers/pygments_test.go | |
parent | d45e358a0543d987091ef54b56eadd9cebda2e0f (diff) |
Clean up lint in various packages
Changes fall into one of the following:
- gofmt -s
- receiver name is inconsistent
- omit unused 2nd value from range
- godoc comment formed incorrectly
- err assigned and not used
- if block ends with a return statement followed by else
Diffstat (limited to 'helpers/pygments_test.go')
-rw-r--r-- | helpers/pygments_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/helpers/pygments_test.go b/helpers/pygments_test.go index d30f5fcc9..830b31944 100644 --- a/helpers/pygments_test.go +++ b/helpers/pygments_test.go @@ -224,13 +224,13 @@ func TestHlLinesToRanges(t *testing.T) { expected interface{} }{ {"", 1, zero}, - {"1 4", 1, [][2]int{[2]int{1, 1}, [2]int{4, 4}}}, - {"1 4", 2, [][2]int{[2]int{2, 2}, [2]int{5, 5}}}, - {"1-4 5-8", 1, [][2]int{[2]int{1, 4}, [2]int{5, 8}}}, - {" 1 4 ", 1, [][2]int{[2]int{1, 1}, [2]int{4, 4}}}, - {"1-4 5-8 ", 1, [][2]int{[2]int{1, 4}, [2]int{5, 8}}}, - {"1-4 5", 1, [][2]int{[2]int{1, 4}, [2]int{5, 5}}}, - {"4 5-9", 1, [][2]int{[2]int{4, 4}, [2]int{5, 9}}}, + {"1 4", 1, [][2]int{{1, 1}, {4, 4}}}, + {"1 4", 2, [][2]int{{2, 2}, {5, 5}}}, + {"1-4 5-8", 1, [][2]int{{1, 4}, {5, 8}}}, + {" 1 4 ", 1, [][2]int{{1, 1}, {4, 4}}}, + {"1-4 5-8 ", 1, [][2]int{{1, 4}, {5, 8}}}, + {"1-4 5", 1, [][2]int{{1, 4}, {5, 5}}}, + {"4 5-9", 1, [][2]int{{4, 4}, {5, 9}}}, {" 1 -4 5 - 8 ", 1, true}, {"a b", 1, true}, } { |