mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 13:40:38 +03:00
all: Run modernize -fix ./...
This commit is contained in:
parent
b7ae24b9c2
commit
521911a576
141 changed files with 302 additions and 354 deletions
|
@ -192,7 +192,7 @@ func BenchmarkUnmarshalString(b *testing.B) {
|
|||
const numJsons = 100
|
||||
|
||||
var jsons [numJsons]string
|
||||
for i := 0; i < numJsons; i++ {
|
||||
for i := range numJsons {
|
||||
jsons[i] = strings.Replace(testJSON, "ROOT_KEY", fmt.Sprintf("root%d", i), 1)
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ func BenchmarkUnmarshalResource(b *testing.B) {
|
|||
const numJsons = 100
|
||||
|
||||
var jsons [numJsons]testContentResource
|
||||
for i := 0; i < numJsons; i++ {
|
||||
for i := range numJsons {
|
||||
key := fmt.Sprintf("root%d", i)
|
||||
jsons[i] = testContentResource{key: key, content: strings.Replace(testJSON, "ROOT_KEY", key, 1), mime: media.Builtin.JSONType}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue