From 52b0926716935f2242a2705563a00c6f810bd14e Mon Sep 17 00:00:00 2001 From: serjvanilla Date: Fri, 30 Oct 2015 15:03:53 +0500 Subject: [PATCH] Saticfy go lint. if block ends with a return statement, so drop this else and outdent its block. --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 51acf24..b88f8a9 100644 --- a/client.go +++ b/client.go @@ -316,9 +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")