mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Don't convert bytes to string in Cmd (interface{} value).
This commit is contained in:
@ -165,13 +165,7 @@ func (cmd *Cmd) readReply(cn *pool.Conn) error {
|
||||
cmd.err = err
|
||||
return cmd.err
|
||||
}
|
||||
if v, ok := val.([]byte); ok {
|
||||
// Convert to string to preserve old behaviour.
|
||||
// TODO: remove in v4
|
||||
cmd.val = string(v)
|
||||
} else {
|
||||
cmd.val = val
|
||||
}
|
||||
cmd.val = val
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user