cli/command/container/start.go:157:20: nilness: nil dereference in type assertion (govet)

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Silvin Lubecki 2019-04-02 11:23:39 +02:00 committed by Sebastiaan van Stijn
parent 85cfd4e518
commit 9afeb6f432
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ func runStart(dockerCli command.Cli, opts *startOptions) error {
} }
} }
if attachErr := <-cErr; attachErr != nil { if attachErr := <-cErr; attachErr != nil {
if _, ok := err.(term.EscapeError); ok { if _, ok := attachErr.(term.EscapeError); ok {
// The user entered the detach escape sequence. // The user entered the detach escape sequence.
return nil return nil
} }