aboutsummaryrefslogtreecommitdiff
path: root/stackless
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-11-16 15:38:01 +0100
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-11-16 18:09:28 +0100
commit32793db72d04141d333eb04ce60170db6e79e6d2 (patch)
tree69735778f01c65ea864e696bec9fa08e83d85378 /stackless
parentAdd Client.MaxConnDuration (diff)
downloadfasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.tar.gz
fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.tar.bz2
fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.zip
Run golangci-lint using a Github Action
Diffstat (limited to 'stackless')
-rw-r--r--stackless/writer.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/stackless/writer.go b/stackless/writer.go
index c2053f9..b0d3e8d 100644
--- a/stackless/writer.go
+++ b/stackless/writer.go
@@ -75,7 +75,7 @@ func (w *writer) Close() error {
func (w *writer) Reset(dstW io.Writer) {
w.xw.Reset()
- w.do(opReset)
+ w.do(opReset) //nolint:errcheck
w.dstW = dstW
}
@@ -125,8 +125,7 @@ func (w *xWriter) Write(p []byte) (int, error) {
if w.bb == nil {
w.bb = bufferPool.Get()
}
- w.bb.Write(p)
- return len(p), nil
+ return w.bb.Write(p)
}
func (w *xWriter) Reset() {