Skip to content

Commit 14bd171

Browse files
committed
all: Run modernize -fix ./...
1 parent db48b3d commit 14bd171

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

debounce_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@ func TestDebounceConcurrentAdd(t *testing.T) {
7070
debounced := debounce.New(100 * time.Millisecond)
7171

7272
for range 10 {
73-
wg.Add(1)
74-
go func() {
75-
defer wg.Done()
73+
wg.Go(func() {
7674
debounced(func() {
7775
atomic.CompareAndSwapUint64(&flag, 0, 1)
7876
})
79-
}()
77+
})
8078
}
8179
wg.Wait()
8280

0 commit comments

Comments
 (0)