hubolib: Simplify map range

This commit is contained in:
Bjørn Erik Pedersen 2016-11-23 16:46:16 +01:00
parent ff2498ee89
commit 0a0db9cd25

View file

@ -228,7 +228,7 @@ func (h *HugoSites) createMissingPages() error {
tax := s.Taxonomies[plural]
foundTaxonomyPage := false
foundTaxonomyTermsPage := false
for key, _ := range tax {
for key := range tax {
for _, p := range taxonomyPages {
if p.sections[0] == plural && p.sections[1] == key {
foundTaxonomyPage = true