1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-25 08:21:55 +03:00

Use string in append directly.

This commit is contained in:
Vladimir Mihailenco
2013-02-02 12:59:42 +02:00
parent 5f00ff095c
commit dfde8211d4

View File

@ -40,7 +40,7 @@ func appendReq(buf []byte, args []string) []byte {
buf = append(buf, '$')
buf = strconv.AppendUint(buf, uint64(len(arg)), 10)
buf = append(buf, '\r', '\n')
buf = append(buf, []byte(arg)...)
buf = append(buf, arg...)
buf = append(buf, '\r', '\n')
}
return buf