From 2f1d649edb75bbc1086f6eb2357b6a38c7e5f117 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Fri, 16 Jun 2017 09:38:45 -0700 Subject: [PATCH] removed unneeded comparison --- redcon.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/redcon.go b/redcon.go index de708c1..ca777b4 100644 --- a/redcon.go +++ b/redcon.go @@ -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.