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 /fasthttpadaptor | |
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 'fasthttpadaptor')
-rw-r--r-- | fasthttpadaptor/adaptor.go | 2 | ||||
-rw-r--r-- | fasthttpadaptor/adaptor_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fasthttpadaptor/adaptor.go b/fasthttpadaptor/adaptor.go index 46b19aa..296ef7c 100644 --- a/fasthttpadaptor/adaptor.go +++ b/fasthttpadaptor/adaptor.go @@ -90,7 +90,7 @@ func NewFastHTTPHandler(h http.Handler) fasthttp.RequestHandler { ctx.Response.Header.Set(k, v) } } - ctx.Write(w.body) + ctx.Write(w.body) //nolint:errcheck } } diff --git a/fasthttpadaptor/adaptor_test.go b/fasthttpadaptor/adaptor_test.go index 452711b..ba15534 100644 --- a/fasthttpadaptor/adaptor_test.go +++ b/fasthttpadaptor/adaptor_test.go @@ -96,7 +96,7 @@ func TestNewFastHTTPHandler(t *testing.T) { req.SetRequestURI(expectedRequestURI) req.Header.SetHost(expectedHost) req.Header.Add(fasthttp.HeaderTransferEncoding, expectedTransferEncoding) - req.BodyWriter().Write([]byte(expectedBody)) + req.BodyWriter().Write([]byte(expectedBody)) // nolint:errcheck for k, v := range expectedHeader { req.Header.Set(k, v) } |