chore: fix all lint issue since golangci-lint bump (#21326)

This commit is contained in:
Julien Robert
2024-08-16 13:03:24 +00:00
committed by GitHub
parent 825e81b688
commit 6276b015bb
20 changed files with 37 additions and 28 deletions
@@ -20,7 +20,7 @@ func TestVersionCommand_Error(t *testing.T) {
rootCmd.SetOut(out)
rootCmd.SetErr(out)
ctx := context.WithValue(context.Background(), log.ContextKey, logger)
ctx := context.WithValue(context.Background(), log.ContextKey, logger) //nolint:staticcheck // temporary issue in dependency
require.Error(t, rootCmd.ExecuteContext(ctx))
require.Contains(t, out.String(), "DAEMON_NAME is not set")