Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
Remove unnecessary if and return the value directly
  • Loading branch information
nykolaslima authored Apr 27, 2017
1 parent d0dd05b commit bd29077
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{} {
Expand Down

0 comments on commit bd29077

Please sign in to comment.