mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-30 22:48:39 +08:00
fix: for loop can be modernized using range over int
This commit is contained in:
parent
cf6cd46544
commit
20a359d385
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user