From 6a0c970814d043e30dee8a264fa7552398b3ef42 Mon Sep 17 00:00:00 2001 From: adnano Date: Thu, 17 Dec 2020 23:03:33 -0500 Subject: [PATCH] Update switch statement --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 5f0b321..7eea9d8 100644 --- a/client.go +++ b/client.go @@ -106,8 +106,8 @@ func (c *Client) do(req *Request, via []*Request) (*Response, error) { // Store connection state resp.TLS = conn.ConnectionState() - switch { - case resp.Status.Class() == StatusClassInput: + switch resp.Status.Class() { + case StatusClassInput: if c.GetInput == nil { break } @@ -119,7 +119,7 @@ func (c *Client) do(req *Request, via []*Request) (*Response, error) { return c.do(req, via) } - case resp.Status.Class() == StatusClassRedirect: + case StatusClassRedirect: if c.CheckRedirect == nil { break }