1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-05 06:42:39 +03:00

Remove unnecessary code

Remove unnecessary if and return the value directly
This commit is contained in:
Nykolas Laurentino de Lima 2017-04-27 14:24:25 -03:00 committed by GitHub
parent d0dd05b659
commit bd29077241

View File

@ -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{} {