From 518c1051693a15326f82e764722facf6d025b4c7 Mon Sep 17 00:00:00 2001 From: Yin Jifeng Date: Wed, 1 Mar 2017 22:41:18 +0800 Subject: [PATCH] StringCmd: remove an unnessary type casting this fixes up 69554c0e --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index e28eb758..8ad982b0 100644 --- a/command.go +++ b/command.go @@ -445,7 +445,7 @@ func (cmd *StringCmd) Result() (string, error) { } func (cmd *StringCmd) Bytes() ([]byte, error) { - return []byte(cmd.val), cmd.err + return cmd.val, cmd.err } func (cmd *StringCmd) Int64() (int64, error) {