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:
@@ -42,7 +42,7 @@ func TestMergeLanguages(t *testing.T) {
|
||||
c.Assert(len(frSite.RegularPages()), qt.Equals, 6)
|
||||
c.Assert(len(nnSite.RegularPages()), qt.Equals, 12)
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
for range 2 {
|
||||
mergedNN := nnSite.RegularPages().MergeByLanguage(enSite.RegularPages())
|
||||
c.Assert(len(mergedNN), qt.Equals, 31)
|
||||
for i := 1; i <= 31; i++ {
|
||||
@@ -163,7 +163,7 @@ date: "2018-02-28"
|
||||
// Add a bundles
|
||||
j := 100
|
||||
contentPairs = append(contentPairs, []string{"bundle/index.md", fmt.Sprintf(contentTemplate, j, j)}...)
|
||||
for i := 0; i < 6; i++ {
|
||||
for i := range 6 {
|
||||
contentPairs = append(contentPairs, []string{fmt.Sprintf("bundle/pb%d.md", i), fmt.Sprintf(contentTemplate, i+j, i+j)}...)
|
||||
}
|
||||
contentPairs = append(contentPairs, []string{"bundle/index.nn.md", fmt.Sprintf(contentTemplate, j, j)}...)
|
||||
|
Reference in New Issue
Block a user