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:
parent
6f0068f273
commit
33b931e718
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Reference in a new issue