diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-05-02 18:27:44 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-05-02 18:27:44 +0300 |
commit | 52e8043921ae31d31e40665902600f97a9f60d9f (patch) | |
tree | 6d5e7037635076703b77d78d6c544d02493cf366 /internal/handlers | |
parent | 7c999a3c3411ce6b62cc7fba97f29343c9ef7806 (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.go | 2 |
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)) |