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
This commit is contained in:
bogem 2016-11-21 23:02:52 +01:00 committed by Bjørn Erik Pedersen
parent 32336e9ec6
commit 581291dc3b

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