Signed-off-by: Don Kjer <don.kjer@gmail.com>
| ... | ... |
@@ -260,7 +260,10 @@ func (cli *DockerCli) monitorTtySize(id string, isExec bool) error {
|
| 260 | 260 |
sigchan := make(chan os.Signal, 1) |
| 261 | 261 |
gosignal.Notify(sigchan, signal.SIGWINCH) |
| 262 | 262 |
go func() {
|
| 263 |
- for _ = range sigchan {
|
|
| 263 |
+ // This tmp := range..., _ = tmp workaround is needed to |
|
| 264 |
+ // suppress gofmt warnings while still preserve go1.3 compatibility |
|
| 265 |
+ for tmp := range sigchan {
|
|
| 266 |
+ _ = tmp |
|
| 264 | 267 |
cli.resizeTty(id, isExec) |
| 265 | 268 |
} |
| 266 | 269 |
}() |