mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 08:42:12 +00: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:
parent
32336e9ec6
commit
581291dc3b
|
@ -896,7 +896,7 @@ func (s *SiteInfo) SitemapAbsURL() string {
|
||||||
|
|
||||||
func (s *Site) initializeSiteInfo() {
|
func (s *Site) initializeSiteInfo() {
|
||||||
var (
|
var (
|
||||||
lang *helpers.Language = s.Language
|
lang = s.Language
|
||||||
languages helpers.Languages
|
languages helpers.Languages
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue