Skip to content

Commit 20a359d

Browse files
fix: for loop can be modernized using range over int
1 parent cf6cd46 commit 20a359d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func TestPathCleanMallocs(t *testing.T) {
9494
func BenchmarkPathClean(b *testing.B) {
9595
b.ReportAllocs()
9696

97-
for {
97+
for b.Loop() {
9898
for _, test := range cleanTests {
9999
cleanPath(test.path)
100100
}

0 commit comments

Comments
 (0)