From 9c45643c1f7f2f61f1537acf80cb07afc9c60023 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 28 Jul 2025 14:03:04 -0300 Subject: [PATCH] chore: run `modernize` --- internal/csync/slices_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/csync/slices_test.go b/internal/csync/slices_test.go index 2ab21a69214b1221662541cf4c5769cea7314d87..3376f3879bb938326c4c0e3baa620f592b456e30 100644 --- a/internal/csync/slices_test.go +++ b/internal/csync/slices_test.go @@ -266,22 +266,22 @@ func TestSlice(t *testing.T) { var wg sync.WaitGroup // Concurrent appends - for i := 0; i < numGoroutines; i++ { + for i := range numGoroutines { wg.Add(1) go func(start int) { defer wg.Done() - for j := 0; j < itemsPerGoroutine; j++ { + for j := range itemsPerGoroutine { s.Append(start*itemsPerGoroutine + j) } }(i) } // Concurrent reads - for i := 0; i < numGoroutines; i++ { + for range numGoroutines { wg.Add(1) go func() { defer wg.Done() - for j := 0; j < itemsPerGoroutine; j++ { + for range itemsPerGoroutine { s.Len() // Just read the length } }()