mirror of
https://github.com/containers/podman.git
synced 2025-05-28 13:40:33 +08:00
golangci-lint pass number 2
clean up and prepare to migrate to the golangci-linter Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -39,7 +39,11 @@ func StartAttachCtr(ctx context.Context, ctr *libpod.Container, stdout, stderr,
|
||||
return err
|
||||
}
|
||||
|
||||
defer restoreTerminal(oldTermState)
|
||||
defer func() {
|
||||
if err := restoreTerminal(oldTermState); err != nil {
|
||||
logrus.Errorf("unable to restore terminal: %q", err)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
streams := new(libpod.AttachStreams)
|
||||
|
Reference in New Issue
Block a user