projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32336e9
)
hugolib: Omit type from declaration of var lang
author
bogem
<albertnigma@gmail.com>
Mon, 21 Nov 2016 22:02:52 +0000
(23:02 +0100)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Wed, 23 Nov 2016 08:13:00 +0000
(09:13 +0100)
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
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index 27f4b7f7bade99bb2f7c534eb618f104dc8b33fd..8c40393cc024f725988172edf8cacc146be82f39 100644
(file)
--- 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
)