mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
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:
committed by
Bjørn Erik Pedersen
parent
32336e9ec6
commit
581291dc3b
@@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user