diff --git a/common/redisclient.go b/common/redisclient.go index 6bee89e..784b327 100644 --- a/common/redisclient.go +++ b/common/redisclient.go @@ -105,9 +105,7 @@ func (client *RedisClient) readBulkString(data *[]byte) (size int, err error) { } rest -= n } - if _, err = client.reader.ReadBytes('\n'); err != nil { - return - } + _, err = client.reader.ReadBytes('\n') return }