aboutsummaryrefslogtreecommitdiff
path: root/header_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2024-01-04 16:05:38 +0200
committerGravatar GitHub <noreply@github.com> 2024-01-04 15:05:38 +0100
commit28615eba5594af29737938ae5cece50d7cba0a17 (patch)
treeefb48c34b0d4372bdbbe4f89a06b7d3fb05baf75 /header_test.go
parentchore: move cookie fuzz test to go 1.18 fuzzing (#1686) (diff)
downloadfasthttp-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.go2
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
}