Use string in append directly.

This commit is contained in:
Vladimir Mihailenco 2013-02-02 12:59:42 +02:00
parent 5f00ff095c
commit dfde8211d4
1 changed files with 1 additions and 1 deletions

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