mirror of
https://github.com/docker/cli.git
synced 2026-08-24 10:05:37 -05:00
modernize: rangeint
go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -rangeint -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -410,7 +410,7 @@ func forceExitAfter3TerminationSignals(ctx context.Context, streams command.Stre
|
||||
signal.Notify(sig, platformsignals.TerminationSignals...)
|
||||
|
||||
// once we have received a total of 3 signals we force exit the cli
|
||||
for i := 0; i < 2; i++ {
|
||||
for range 2 {
|
||||
<-sig
|
||||
}
|
||||
_, _ = fmt.Fprint(streams.Err(), "\ngot 3 SIGTERM/SIGINTs, forcefully exiting\n")
|
||||
|
||||
Reference in New Issue
Block a user