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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-05-02 18:27:44 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-05-02 18:27:44 +0300
commit52e8043921ae31d31e40665902600f97a9f60d9f (patch)
tree6d5e7037635076703b77d78d6c544d02493cf366 /internal/handlers
parent7c999a3c3411ce6b62cc7fba97f29343c9ef7806 (diff)
Add nolintlint linter configuration
Require an explanation for nolint rules and warn about unused rules
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index 76724387..22d49e4b 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -62,7 +62,7 @@ func (a *Handlers) HandleArtifactRequest(host string, w http.ResponseWriter, r *
return true
}
- // nolint: bodyclose
+ // nolint: bodyclose // false positive
// 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))