Skip to content

Commit

Permalink
remove loop var capture
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo committed Mar 7, 2025
1 parent 8824448 commit 444cfa3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/controllers/state/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,6 @@ var _ = Describe("Cluster State Sync", func() {
var wg sync.WaitGroup
for i := range 1000 {
wg.Add(1)
i := i // Capture loop variable
go func(index int) {
defer wg.Done()
nodeClaim := test.NodeClaim(v1.NodeClaim{
Expand Down

0 comments on commit 444cfa3

Please sign in to comment.