Browse code

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

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Don Kjer authored on 2015/01/09 06:11:48
Showing 1 changed files
... ...
@@ -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
 	}()