Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-05-25 05:10:00 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-06-01 03:39:03 +0300
commit35c937be058d70d1e4fd4dd49de329dc32936f73 (patch)
tree24c222bec9922fe97d71c251f3cb722c7e7cc367 /internal/handlers
parent01734cae272c4f898b233429aeba19892fa4857e (diff)
Enable bodyclose linter
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/handlers.go3
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))
}