From 3703270220e73a9035e1d8a1bc7c02202c2964de Mon Sep 17 00:00:00 2001 From: lesismal Date: Thu, 2 Jan 2025 01:08:43 +0800 Subject: [PATCH] lint --- nbhttp/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbhttp/response.go b/nbhttp/response.go index d396343e..2db4074a 100644 --- a/nbhttp/response.go +++ b/nbhttp/response.go @@ -195,7 +195,7 @@ APPEND_BODY: res.bodyWritten += l res.bodyBuffer = mempool.Append(res.bodyBuffer, data...) if len(*res.bodyBuffer) >= maxPacketSize { - l, err := conn.Write(*res.bodyBuffer) + l, err = conn.Write(*res.bodyBuffer) if err != nil { mempool.Free(res.bodyBuffer) res.bodyBuffer = nil