removed unneeded comparison

This commit is contained in:
Josh Baker 2017-06-16 09:38:45 -07:00
parent b67f37f0b1
commit 2f1d649edb
1 changed files with 3 additions and 7 deletions

View File

@ -477,13 +477,9 @@ 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')
}
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.