From ac83f1d8dae502a86cb39067c44a049151701c55 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 9 Feb 2026 11:45:44 +0100 Subject: [PATCH] chore(commitserver): Fix modernize linter (#26327) Signed-off-by: Matthieu MOREL --- commitserver/commit/addnote_race_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commitserver/commit/addnote_race_test.go b/commitserver/commit/addnote_race_test.go index 2dd901855b..cdc30ccd40 100644 --- a/commitserver/commit/addnote_race_test.go +++ b/commitserver/commit/addnote_race_test.go @@ -35,7 +35,7 @@ func TestAddNoteConcurrentStaggered(t *testing.T) { // Create separate clones for concurrent operations cloneClients := make([]git.Client, 3) - for i := 0; i < 3; i++ { + for i := range 3 { cloneClients[i] = getClientForClone(t, remotePath) } @@ -43,7 +43,7 @@ func TestAddNoteConcurrentStaggered(t *testing.T) { var wg sync.WaitGroup errors := make([]error, 3) - for i := 0; i < 3; i++ { + for i := range 3 { wg.Add(1) go func(idx int) { defer wg.Done() @@ -81,7 +81,7 @@ func TestAddNoteConcurrentSimultaneous(t *testing.T) { // Create separate clones for concurrent operations cloneClients := make([]git.Client, 3) - for i := 0; i < 3; i++ { + for i := range 3 { cloneClients[i] = getClientForClone(t, remotePath) } @@ -89,7 +89,7 @@ func TestAddNoteConcurrentSimultaneous(t *testing.T) { var wg sync.WaitGroup startChan := make(chan struct{}) - for i := 0; i < 3; i++ { + for i := range 3 { wg.Add(1) go func(idx int) { defer wg.Done()