From: bogem <albertnigma@gmail.com>
Date: Mon, 21 Nov 2016 22:02:52 +0000 (+0100)
Subject: hugolib: Omit type from declaration of var lang
X-Git-Tag: v0.18~66
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=581291dc;p=brevno-suite%2Fhugo

hugolib: Omit type from declaration of var lang

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
---

diff --git a/hugolib/site.go b/hugolib/site.go
index 27f4b7f7..8c40393c 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -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
 	)