aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-12-17 23:03:33 -0500
committerAdnan Maolood <[email protected]>2020-12-17 23:03:33 -0500
commita09cb5a23c24c80147fc2aaadc0b33b6173389a2 (patch)
tree1887252cbebee98a86f294fa817deb5645acb0a7 /client.go
parentclient: Remove GetCertificate callback (diff)
downloadgo-gemini-a09cb5a23c24c80147fc2aaadc0b33b6173389a2.tar.xz
go-gemini-a09cb5a23c24c80147fc2aaadc0b33b6173389a2.zip
Update switch statement
Diffstat (limited to 'client.go')
-rw-r--r--client.go6
1 files 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
}