diff --git a/command.go b/command.go index 543aeac1..33c11aaf 100644 --- a/command.go +++ b/command.go @@ -111,10 +111,7 @@ type baseCmd struct { } func (cmd *baseCmd) Err() error { - if cmd.err != nil { - return cmd.err - } - return nil + return cmd.err } func (cmd *baseCmd) args() []interface{} {