Skip to content

Commit

Permalink
fixing lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Jul 2, 2024
1 parent f988e1e commit e902bf8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/consuldp/consul_dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,8 @@ func (cdp *ConsulDataplane) Run(ctx context.Context) error {
// return before configuring them.
if cdp.cfg.Mode == ModeTypeDNSProxy {
go func() {
select {
case <-ctx.Done():
doneCh <- nil
}
<-ctx.Done()
doneCh <- nil
}()
return <-doneCh
}
Expand Down

0 comments on commit e902bf8

Please sign in to comment.