shithub: hugo

Download patch

ref: 339ee37143ca5a6bb22bbc1b0468d785f450cfb7
parent: f10db101a18f5cad332c9398136f77e35a169d52
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Oct 9 06:49:52 EDT 2019

Simplify test output to simplify diffing

--- a/hugolib/testhelpers_test.go
+++ b/hugolib/testhelpers_test.go
@@ -917,13 +917,12 @@
 
 func dumpPages(pages ...page.Page) {
 	fmt.Println("---------")
-	for i, p := range pages {
+	for _, p := range pages {
 		var meta interface{}
 		if p.File() != nil && p.File().FileInfo() != nil {
 			meta = p.File().FileInfo().Meta()
 		}
-		fmt.Printf("%d: Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s Meta: %v\n",
-			i+1,
+		fmt.Printf("Kind: %s Title: %-10s RelPermalink: %-10s Path: %-10s sections: %s Lang: %s Meta: %v\n",
 			p.Kind(), p.Title(), p.RelPermalink(), p.Path(), p.SectionsPath(), p.Lang(), meta)
 	}
 }