mirror of https://github.com/tidwall/redcon.git
removed unneeded comparison
This commit is contained in:
parent
b67f37f0b1
commit
2f1d649edb
|
@ -477,14 +477,10 @@ func (w *Writer) WriteError(msg string) {
|
|||
|
||||
// WriteString writes a string to the client.
|
||||
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, msg...)
|
||||
w.b = append(w.b, '\r', '\n')
|
||||
}
|
||||
}
|
||||
|
||||
// WriteInt writes an integer to the client.
|
||||
func (w *Writer) WriteInt(num int) {
|
||||
|
|
Loading…
Reference in New Issue