commands, tpl: Get rid of repeating viper accesses

* all: Delete some blank lines
* commands, tpl: Get rid of repeating viper accesses
This commit is contained in:
Albert Nigmatzianov
2016-11-07 00:10:32 +01:00
committed by Bjørn Erik Pedersen
parent 4b4ab47553
commit 85a2d81e3c
9 changed files with 5 additions and 14 deletions

View File

@@ -917,7 +917,6 @@ func (s *SiteInfo) SitemapAbsURL() string {
}
func (s *Site) initializeSiteInfo() {
var (
lang *helpers.Language = s.Language
languages helpers.Languages
@@ -1980,7 +1979,6 @@ func (s *Site) renderSectionLists(prepare bool) error {
}
if n.paginator != nil {
paginatePath := helpers.Config().GetString("paginatePath")
// write alias for page 1
@@ -2029,7 +2027,6 @@ func (s *Site) renderSectionLists(prepare bool) error {
}
func (s *Site) renderHomePage(prepare bool) error {
n := s.newHomeNode(prepare, 0)
if prepare {
return nil