Command: `gofmt -l -s -w .`
This commit is contained in:
Caleb Spare
2013-11-24 13:48:57 -08:00
committed by spf13
parent 1abc2f0b86
commit 6da23f7449
8 changed files with 30 additions and 32 deletions

View File

@@ -326,7 +326,7 @@ func (s *Site) BuildSiteMeta() (err error) {
}
}
}
for k, _ := range s.Indexes[plural] {
for k := range s.Indexes[plural] {
s.Indexes[plural][k].Sort()
}
}
@@ -335,7 +335,7 @@ func (s *Site) BuildSiteMeta() (err error) {
s.Sections.Add(p.Section, WeightedIndexEntry{s.Pages[i].Weight, s.Pages[i]})
}
for k, _ := range s.Sections {
for k := range s.Sections {
s.Sections[k].Sort()
}
@@ -356,7 +356,7 @@ func (s *Site) BuildSiteMeta() (err error) {
func (s *Site) possibleIndexes() (indexes []string) {
for _, p := range s.Pages {
for k, _ := range p.Params {
for k := range p.Params {
if !inStringArray(indexes, k) {
indexes = append(indexes, k)
}