Skip to content

Commit ba26ed2

Browse files
authored
chore: remove default values assignment in NewWaitGroupContext (#15)
1 parent e95110a commit ba26ed2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wait_group_context.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ type WaitGroupContext struct {
2020
// NewWaitGroupContext returns a new WaitGroupContext with Context ctx.
2121
func NewWaitGroupContext(ctx context.Context) *WaitGroupContext {
2222
return &WaitGroupContext{
23-
ctx: ctx,
24-
done: make(chan struct{}),
25-
counter: 0,
26-
state: 0,
23+
ctx: ctx,
24+
done: make(chan struct{}),
2725
}
2826
}
2927

0 commit comments

Comments
 (0)