chore: linter: intrange

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent 465804161b
commit a1069a0d70
16 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ func clear(v interface{}, since int) error {
s := reflect.ValueOf(v).Elem()
t := s.Type()
for i := 0; i < s.NumField(); i++ {
for i := range s.NumField() {
f := s.Field(i)
tag := t.Field(i).Tag
+1 -1
View File
@@ -436,7 +436,7 @@ func CpuBench(ctx context.Context, iterations int, duration time.Duration) float
r.Read(bs)
var perf float64
for i := 0; i < iterations; i++ {
for range iterations {
if v := cpuBenchOnce(ctx, duration, bs); v > perf {
perf = v
}