diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2019-11-16 15:38:01 +0100 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2019-11-16 18:09:28 +0100 |
commit | 32793db72d04141d333eb04ce60170db6e79e6d2 (patch) | |
tree | 69735778f01c65ea864e696bec9fa08e83d85378 /stackless | |
parent | Add Client.MaxConnDuration (diff) | |
download | fasthttp-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.go | 5 |
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() { |