diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-05-25 05:10:00 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-06-01 03:39:03 +0300 |
commit | 35c937be058d70d1e4fd4dd49de329dc32936f73 (patch) | |
tree | 24c222bec9922fe97d71c251f3cb722c7e7cc367 /internal/handlers | |
parent | 01734cae272c4f898b233429aeba19892fa4857e (diff) |
Enable bodyclose linter
Diffstat (limited to 'internal/handlers')
-rw-r--r-- | internal/handlers/handlers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 5791e793..e95a7a97 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -63,5 +63,8 @@ func (a *Handlers) HandleArtifactRequest(host string, w http.ResponseWriter, r * return true } + // nolint: bodyclose + // a.checkIfLoginRequiredOrInvalidToken returns a response.Body, closing this body is responsibility + // of the TryMakeRequest implementation return a.Artifact.TryMakeRequest(host, w, r, token, a.checkIfLoginRequiredOrInvalidToken(w, r, token)) } |