1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Adding workaround to suppress gofmt issues with api/client/utils.go

Signed-off-by: Don Kjer <don.kjer@gmail.com>
This commit is contained in:
Don Kjer 2015-01-08 21:11:48 +00:00
parent 6f0068f273
commit 33b931e718

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