From 8a8dbfb3ecbdc663a6280b87f9a5fcd412139ab2 Mon Sep 17 00:00:00 2001 From: xyb Date: Sat, 19 Dec 2020 00:09:09 +0800 Subject: [PATCH] chore: remove redundant type conversion (#541) Remove redundant []byte to string conversion --- redis/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/conn.go b/redis/conn.go index 5d7841c6..bc1735c2 100644 --- a/redis/conn.go +++ b/redis/conn.go @@ -615,7 +615,7 @@ func (c *conn) readReply() (interface{}, error) { return string(line[1:]), nil } case '-': - return Error(string(line[1:])), nil + return Error(line[1:]), nil case ':': return parseInt(line[1:]) case '$':