From b86af60308d9fda0850bb86641e9ced2575ffd87 Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:54:13 +0200 Subject: [PATCH] fix usestdlibvars linter Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- .golangci.yaml | 1 - internal/vault/vault.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index ee41d5b14..fe33a9879 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -13,7 +13,6 @@ issues: - forbidigo - interfacebloat - predeclared - - usestdlibvars - noctx - nilnil - nakedret diff --git a/internal/vault/vault.go b/internal/vault/vault.go index a4ab1aec1..e9a24307b 100644 --- a/internal/vault/vault.go +++ b/internal/vault/vault.go @@ -569,6 +569,7 @@ func (v *Vault) IsVaultInitializedAndUnsealed() error { // 473 = if performance standby // 501 = if not initialized // 503 = if sealed + // nolint: usestdlibvars // We use the numeric error codes here that we got from the Vault docs. if err != nil { switch { case healthResp == nil: