1
0
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:
Don Kjer
2015-01-08 21:11:48 +00:00
parent 196597b4ad
commit a6dde9956d

View File

@@ -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)
}
}()