aboutsummaryrefslogtreecommitdiff
path: root/streaming_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-11-24 12:32:11 +0200
committerGravatar GitHub <noreply@github.com> 2023-11-24 11:32:11 +0100
commitd3397c64edaf92713ea6233d840fe3d11891e13d (patch)
treecec9402170ae8e9e9164400dc6c411a8de6436d8 /streaming_test.go
parentEnable dupword, unconvert linters (#1658) (diff)
downloadfasthttp-d3397c64edaf92713ea6233d840fe3d11891e13d.tar.gz
fasthttp-d3397c64edaf92713ea6233d840fe3d11891e13d.tar.bz2
fasthttp-d3397c64edaf92713ea6233d840fe3d11891e13d.zip
Enable wastedassign, whitespace linters; fix issues (#1665)
Diffstat (limited to 'streaming_test.go')
-rw-r--r--streaming_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming_test.go b/streaming_test.go
index 084710b..e6ebb7c 100644
--- a/streaming_test.go
+++ b/streaming_test.go
@@ -31,7 +31,7 @@ aaaaaaaaaa`
s := &Server{
StreamRequestBody: true,
Handler: func(ctx *RequestCtx) {
- body := ""
+ var body string
expected := "aaaaaaaaaa"
if string(ctx.Path()) == "/one" {
body = string(ctx.PostBody())