diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2024-01-04 16:05:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 15:05:38 +0100 |
commit | 28615eba5594af29737938ae5cece50d7cba0a17 (patch) | |
tree | efb48c34b0d4372bdbbe4f89a06b7d3fb05baf75 /header_test.go | |
parent | chore: move cookie fuzz test to go 1.18 fuzzing (#1686) (diff) | |
download | fasthttp-28615eba5594af29737938ae5cece50d7cba0a17.tar.gz fasthttp-28615eba5594af29737938ae5cece50d7cba0a17.tar.bz2 fasthttp-28615eba5594af29737938ae5cece50d7cba0a17.zip |
Change empty string checks to be more idiomatic (#1684)
Diffstat (limited to 'header_test.go')
-rw-r--r-- | header_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/header_test.go b/header_test.go index eaa9a50..83b8a9c 100644 --- a/header_test.go +++ b/header_test.go @@ -2355,7 +2355,7 @@ type bufioPeekReader struct { } func (r *bufioPeekReader) Read(b []byte) (int, error) { - if len(r.s) == 0 { + if r.s == "" { return 0, io.EOF } |