mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue