hugolib: Omit type from declaration of var lang
authorbogem <albertnigma@gmail.com>
Mon, 21 Nov 2016 22:02:52 +0000 (23:02 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Nov 2016 08:13:00 +0000 (09:13 +0100)
Fix golint warning: hugolib/site.go:922:13: should omit type
*helpers.Language from declaration of var lang; it will be inferred from
the right-hand side

See #2014

hugolib/site.go

index 27f4b7f7bade99bb2f7c534eb618f104dc8b33fd..8c40393cc024f725988172edf8cacc146be82f39 100644 (file)
@@ -896,7 +896,7 @@ func (s *SiteInfo) SitemapAbsURL() string {
 
 func (s *Site) initializeSiteInfo() {
        var (
-               lang      *helpers.Language = s.Language
+               lang      = s.Language
                languages helpers.Languages
        )