From 584da37756dd386a8b33cfa6b49eca3e555380a3 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 13:03:33 +0200 Subject: [PATCH] cli/command/container/attach.go:141:15: nilness: impossible condition: nil != nil (govet) Signed-off-by: Silvin Lubecki --- cli/command/container/attach.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cli/command/container/attach.go b/cli/command/container/attach.go index f2bcfb0256..854aa73952 100644 --- a/cli/command/container/attach.go +++ b/cli/command/container/attach.go @@ -138,10 +138,6 @@ func runAttach(dockerCli command.Cli, opts *attachOptions) error { return err } - if errAttach != nil { - return errAttach - } - return getExitStatus(errC, resultC) }