1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Fix reading zero-length bulk reply.

This commit is contained in:
Vladimir Mihailenco
2012-08-15 23:48:32 +03:00
parent a2f5423658
commit df1b8a3f5c
2 changed files with 2 additions and 4 deletions

View File

@ -107,8 +107,6 @@ func ParseReply(rd ReadLiner) (interface{}, error) {
case '$':
if len(line) == 3 && line[1] == '-' && line[2] == '1' {
return "", Nil
} else if len(line) == 2 && line[1] == '0' {
return "", nil
}
replyLenInt32, err := strconv.ParseInt(string(line[1:]), 10, 32)