mirror of https://github.com/tidwall/redcon.git
removed unneeded comparison
This commit is contained in:
parent
b67f37f0b1
commit
2f1d649edb
|
@ -477,13 +477,9 @@ func (w *Writer) WriteError(msg string) {
|
||||||
|
|
||||||
// WriteString writes a string to the client.
|
// WriteString writes a string to the client.
|
||||||
func (w *Writer) WriteString(msg string) {
|
func (w *Writer) WriteString(msg string) {
|
||||||
if msg == "OK" {
|
|
||||||
w.b = append(w.b, '+', 'O', 'K', '\r', '\n')
|
|
||||||
} else {
|
|
||||||
w.b = append(w.b, '+')
|
w.b = append(w.b, '+')
|
||||||
w.b = append(w.b, msg...)
|
w.b = append(w.b, msg...)
|
||||||
w.b = append(w.b, '\r', '\n')
|
w.b = append(w.b, '\r', '\n')
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WriteInt writes an integer to the client.
|
// WriteInt writes an integer to the client.
|
||||||
|
|
Loading…
Reference in New Issue