From 044091b51d3b40b9e7fbc1fb34975a7662916e4e Mon Sep 17 00:00:00 2001 From: Gary Burd Date: Mon, 2 Nov 2015 08:25:46 -0800 Subject: [PATCH] Fix lint warning --- client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.go b/client.go index 51acf24..5071a0d 100644 --- a/client.go +++ b/client.go @@ -316,10 +316,9 @@ func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn, *http.Re n, _ := io.ReadFull(resp.Body, buf) resp.Body = ioutil.NopCloser(bytes.NewReader(buf[:n])) return nil, resp, ErrBadHandshake - } else { - resp.Body = ioutil.NopCloser(bytes.NewReader([]byte{})) } + resp.Body = ioutil.NopCloser(bytes.NewReader([]byte{})) conn.subprotocol = resp.Header.Get("Sec-Websocket-Protocol") netConn.SetDeadline(time.Time{})