Remove unnecessary type conversions

This commit is contained in:
Bjørn Erik Pedersen
2016-03-14 20:31:31 +01:00
parent 3a82ae7114
commit 70739c972e
6 changed files with 9 additions and 9 deletions

View File

@@ -358,7 +358,7 @@ func (s *SiteInfo) githubFileLink(ref string, currentPage *Page, relative bool)
}
}
for _, file := range []*source.File(*s.Files) {
for _, file := range *s.Files {
if file.Path() == refPath {
target = file
break
@@ -1899,7 +1899,7 @@ func (s *Site) permalink(plink string) string {
}
func (s *Site) permalinkStr(plink string) string {
return helpers.MakePermalink(string(viper.GetString("BaseURL")), helpers.URLizeAndPrep(plink)).String()
return helpers.MakePermalink(viper.GetString("BaseURL"), helpers.URLizeAndPrep(plink)).String()
}
func (s *Site) NewNode() *Node {