hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 581291dc3b84280432765a338dbc29ed338374e5
parent 32336e9ec6d4a17bb13c30ca98233adf494ba03b
Author: bogem <albertnigma@gmail.com>
Date:   Mon, 21 Nov 2016 23:02:52 +0100

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

Diffstat:
Mhugolib/site.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
 	)