mirror of https://github.com/tidwall/redcon.git
remove byte conversion
This commit is contained in:
parent
5cce96d461
commit
0be017aab7
|
@ -480,7 +480,7 @@ func (w *Writer) WriteString(msg string) {
|
||||||
w.b = append(w.b, '+', 'O', 'K', '\r', '\n')
|
w.b = append(w.b, '+', 'O', 'K', '\r', '\n')
|
||||||
} else {
|
} else {
|
||||||
w.b = append(w.b, '+')
|
w.b = append(w.b, '+')
|
||||||
w.b = append(w.b, []byte(msg)...)
|
w.b = append(w.b, msg...)
|
||||||
w.b = append(w.b, '\r', '\n')
|
w.b = append(w.b, '\r', '\n')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue