Skip to content

Commit 7791a3e

Browse files
committed
Fixed lint
1 parent 48ed06e commit 7791a3e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: main.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ func main() {
2727
// Setup and wait for exit signal
2828
sigChannel := make(chan os.Signal, 1)
2929
signal.Notify(sigChannel, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
30-
select {
31-
case <-sigChannel:
32-
break
33-
}
30+
31+
// Wait for exit signal
32+
<-sigChannel
3433
mq.Disconnect(uint(time.Second.Milliseconds()))
3534
}

0 commit comments

Comments
 (0)