mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -250,7 +250,7 @@ func (b *tocBuilder) writeHeading(level, indent int, h *Heading) {
|
||||
}
|
||||
|
||||
func (b *tocBuilder) indent(n int) {
|
||||
for i := 0; i < n; i++ {
|
||||
for range n {
|
||||
b.s.WriteString(" ")
|
||||
}
|
||||
}
|
||||
|
@@ -196,7 +196,7 @@ func TestTocMisc(t *testing.T) {
|
||||
func BenchmarkToc(b *testing.B) {
|
||||
newTocs := func(n int) []*Fragments {
|
||||
var tocs []*Fragments
|
||||
for i := 0; i < n; i++ {
|
||||
for range n {
|
||||
tocs = append(tocs, newTestToc())
|
||||
}
|
||||
return tocs
|
||||
|
Reference in New Issue
Block a user