mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -136,7 +136,7 @@ mediaTypes = ['text/plain']
|
||||
{{ end }}
|
||||
`
|
||||
|
||||
for i := 0; i < numPages; i++ {
|
||||
for i := range numPages {
|
||||
filesTemplate += fmt.Sprintf("-- content/post/p%d.md --\n", i)
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ mediaTypes = ['text/plain']
|
||||
|
||||
b.Build()
|
||||
|
||||
for i := 0; i < numPages; i++ {
|
||||
for i := range numPages {
|
||||
b.AssertFileContent(fmt.Sprintf("public/post/p%d/index.html", i), fmt.Sprintf("Content: Response for /post/p%d/.", i))
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user