From 9afeb6f4329b8cd6bca15fee5e5b25ade3bc89e6 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 11:23:39 +0200 Subject: [PATCH] cli/command/container/start.go:157:20: nilness: nil dereference in type assertion (govet) Signed-off-by: Silvin Lubecki --- cli/command/container/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/container/start.go b/cli/command/container/start.go index 10661768ac..2693987fc5 100644 --- a/cli/command/container/start.go +++ b/cli/command/container/start.go @@ -150,7 +150,7 @@ func runStart(dockerCli command.Cli, opts *startOptions) error { } } if attachErr := <-cErr; attachErr != nil { - if _, ok := err.(term.EscapeError); ok { + if _, ok := attachErr.(term.EscapeError); ok { // The user entered the detach escape sequence. return nil }