Skip to content

Commit

Permalink
StringCmd: remove an unnessary type casting
Browse files Browse the repository at this point in the history
this fixes up 69554c0
  • Loading branch information
flisky committed Mar 1, 2017
1 parent cbad034 commit 518c105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 518c105

Please sign in to comment.