fix: for loop can be modernized using range over int

This commit is contained in:
613 2025-10-09 14:20:34 +08:00
parent cf6cd46544
commit 20a359d385

View File

@ -94,7 +94,7 @@ func TestPathCleanMallocs(t *testing.T) {
func BenchmarkPathClean(b *testing.B) {
b.ReportAllocs()
for {
for b.Loop() {
for _, test := range cleanTests {
cleanPath(test.path)
}