mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
Reference in New Issue
Block a user