mirror of https://github.com/go-redis/redis.git
Remove unnecessary code
Remove unnecessary if and return the value directly
This commit is contained in:
parent
d0dd05b659
commit
bd29077241
|
@ -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{} {
|
||||
|
|
Loading…
Reference in New Issue