From e98077d18f8853ef46fd56bcbe085f9831dedb8a Mon Sep 17 00:00:00 2001 From: nuxtreact Date: Fri, 13 Feb 2026 00:38:01 +0800 Subject: [PATCH] refactor: omit unnecessary reassignment Signed-off-by: nuxtreact --- orchestrator/stage/squash_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/orchestrator/stage/squash_test.go b/orchestrator/stage/squash_test.go index efb471716..62e53110e 100644 --- a/orchestrator/stage/squash_test.go +++ b/orchestrator/stage/squash_test.go @@ -120,7 +120,6 @@ func TestMultiSquashWithDifferentSegments(t *testing.T) { mergeUnit := Unit{Stage: 0, Segment: 1} for _, modState := range stage.storeModuleStates { - modState := modState if mergeUnit.Segment < modState.segmenter.FirstIndex() { continue } @@ -175,7 +174,6 @@ func TestMultiSquashErrorHandling(t *testing.T) { // Simulate error in one of the goroutines for idx := range stage.storeModuleStates { - idx := idx stage.syncWork.Go(func() error { if idx == 1 { return assert.AnError // Simulate error in second module @@ -327,7 +325,6 @@ func TestSyncWorkGroupBehavior(t *testing.T) { // Spawn multiple goroutines with different execution times for i := range 5 { - i := i group.Go(func() error { sleepTime := time.Duration(5-i) * 10 * time.Millisecond time.Sleep(sleepTime)