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 /bytesconv_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 'bytesconv_test.go')
-rw-r--r-- | bytesconv_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bytesconv_test.go b/bytesconv_test.go index 67c41f9..c9034ec 100644 --- a/bytesconv_test.go +++ b/bytesconv_test.go @@ -82,10 +82,8 @@ func testParseIPv4(t *testing.T, ipStr string, isValid bool) { if s != ipStr { t.Fatalf("unexpected ip parsed %q. Expecting %q", s, ipStr) } - } else { - if err == nil { - t.Fatalf("expecting error when parsing ip %q", ipStr) - } + } else if err == nil { + t.Fatalf("expecting error when parsing ip %q", ipStr) } } |