From 20a359d385ed367486937090c8a52ae820a1060b Mon Sep 17 00:00:00 2001 From: 613 Date: Thu, 9 Oct 2025 14:20:34 +0800 Subject: [PATCH] fix: for loop can be modernized using range over int --- path_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path_test.go b/path_test.go index e1386140..2dc2e8a5 100644 --- a/path_test.go +++ b/path_test.go @@ -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) }