build: use "for i := range n", added in go1.22

This commit is contained in:
Nick Craig-Wood
2025-09-15 12:45:57 +01:00
parent 04d49bf0ea
commit 4368863fcb
8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ func TestJobRunPanic(t *testing.T) {
runtime.Gosched() // yield to make sure job is updated
// Wait a short time for the panic to propagate
for i := uint(0); i < 10; i++ {
for i := range uint(10) {
job.mu.Lock()
e := job.Error
job.mu.Unlock()