diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-08-29 21:08:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 20:08:37 +0200 |
commit | 9aa666e8145d44ee249ce281d895bf20dc82f129 (patch) | |
tree | c9fdd69bd367276e67935c41d7dd1d46f2d62b1b /client_test.go | |
parent | Update golangci-lint and gosec (#1609) (diff) | |
download | fasthttp-9aa666e8145d44ee249ce281d895bf20dc82f129.tar.gz fasthttp-9aa666e8145d44ee249ce281d895bf20dc82f129.tar.bz2 fasthttp-9aa666e8145d44ee249ce281d895bf20dc82f129.zip |
Enable gocritic linter; fix lint issues (#1612)
Diffstat (limited to 'client_test.go')
-rw-r--r-- | client_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client_test.go b/client_test.go index 8d07d7f..74b87a2 100644 --- a/client_test.go +++ b/client_test.go @@ -669,10 +669,12 @@ func TestClientHeaderCase(t *testing.T) { code, body, err := c.Get(nil, "http://example.com") if err != nil { - t.Error(err) - } else if code != 200 { + t.Fatal(err) + } + if code != 200 { t.Errorf("expected status code 200 got %d", code) - } else if string(body) != "This is the data in the first chunk and this is the second one " { + } + if string(body) != "This is the data in the first chunk and this is the second one " { t.Errorf("wrong body: %q", body) } } |