Skip to content

Commit

Permalink
Merge pull request redis#556 from nykolaslima/patch-1
Browse files Browse the repository at this point in the history
Remove unnecessary code
  • Loading branch information
vmihailenco authored Apr 28, 2017
2 parents d0dd05b + bd29077 commit 4c6e2ad
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 4c6e2ad

Please sign in to comment.