hubolib: Simplify map range
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Nov 2016 15:46:16 +0000 (16:46 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Nov 2016 15:46:16 +0000 (16:46 +0100)
hugolib/hugo_sites.go

index 523cf51a7bee20e020f38c7615a7fb109785938c..31e499922fd77b2091ac3eef6046ab03f0c99d27 100644 (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