From a6dde9956d2aaa29234e0dc4def21ecee069b679 Mon Sep 17 00:00:00 2001 From: Don Kjer Date: Thu, 8 Jan 2015 21:11:48 +0000 Subject: [PATCH] Adding workaround to suppress gofmt issues with api/client/utils.go Signed-off-by: Don Kjer Upstream-commit: 33b931e718b89fec64705471534f8df3d5e42c4c Component: engine --- components/engine/api/client/utils.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/engine/api/client/utils.go b/components/engine/api/client/utils.go index 6ebe448062..0ee02cdbce 100644 --- a/components/engine/api/client/utils.go +++ b/components/engine/api/client/utils.go @@ -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) } }()