Clean up lint in various packages
authorCameron Moore <moorereason@gmail.com>
Tue, 26 Sep 2017 02:25:33 +0000 (21:25 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 29 Sep 2017 14:23:16 +0000 (16:23 +0200)
commit47fdfd5196cd24a23b30afe1d88969ffb413ab59
treee2b4dc5bb5341ab2d8588879fb733ee888b9164b
parentd45e358a0543d987091ef54b56eadd9cebda2e0f
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
12 files changed:
helpers/pygments_test.go
hugolib/handler_meta.go
hugolib/page.go
hugolib/pages_related_test.go
media/mediaType.go
output/outputFormat.go
related/inverted_index.go
related/inverted_index_test.go
source/filesystem.go
tpl/collections/collections.go
tpl/fmt/fmt.go
tpl/images/images.go