mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Adding workaround to suppress gofmt issues with api/client/utils.go
Signed-off-by: Don Kjer <don.kjer@gmail.com> Upstream-commit: 33b931e718b89fec64705471534f8df3d5e42c4c Component: engine
This commit is contained in:
@@ -260,7 +260,10 @@ func (cli *DockerCli) monitorTtySize(id string, isExec bool) error {
|
||||
sigchan := make(chan os.Signal, 1)
|
||||
gosignal.Notify(sigchan, signal.SIGWINCH)
|
||||
go func() {
|
||||
for _ = range sigchan {
|
||||
// This tmp := range..., _ = tmp workaround is needed to
|
||||
// suppress gofmt warnings while still preserve go1.3 compatibility
|
||||
for tmp := range sigchan {
|
||||
_ = tmp
|
||||
cli.resizeTty(id, isExec)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user