Skip to content

Commit e1a028c

Browse files
committed
fix: fallthrough for non-blocking channel
Signed-off-by: Alano Terblanche <[email protected]>
1 parent 13c6b68 commit e1a028c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmd/docker/docker.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"os/signal"
88
"strings"
99
"syscall"
10-
"time"
1110

1211
"github.com/docker/cli/cli"
1312
pluginmanager "github.com/docker/cli/cli-plugins/manager"
@@ -255,8 +254,7 @@ func tryPluginRun(dockerCli command.Cli, cmd *cobra.Command, subcommand string,
255254
_, _ = fmt.Fprintf(dockerCli.Err(), "failed to signal plugin to close: %v\n", err)
256255
}
257256
}
258-
// timeout here if for some reason the channel is still open and not populated.
259-
case <-time.After(1 * time.Millisecond):
257+
default:
260258
// fallthrough and continue with the loop.
261259
}
262260
retries++

0 commit comments

Comments
 (0)