Linter: fix linter for golangci-lint version v1.45.0 (#47623)

* Update golangci-lint to v1.45.2

Version 1.45.0 added support for Go 1.18:

https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md#v1450

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>

* Linter: fix some lints issue for golangci-lint version 1.45.2

Co-authored-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
ying-jeanne
2022-04-12 14:15:16 +02:00
committed by GitHub
parent 98cbecc4a5
commit e979690011
3 changed files with 5 additions and 4 deletions

View File

@@ -29,7 +29,8 @@ import (
const (
InvalidUsernamePassword = "invalid username or password"
InvalidAPIKey = "invalid API key"
/* #nosec */
InvalidAPIKey = "invalid API key"
)
const ServiceName = "ContextHandler"