From 144327bb09cf2991ed70354922ee84538ef14671 Mon Sep 17 00:00:00 2001 From: Krzysztof Ostrowski Date: Mon, 9 Sep 2024 17:20:31 +0200 Subject: [PATCH] pkg/authz/rewrite: fix linter issue --- pkg/authorization/rewrite/rewrite_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/authorization/rewrite/rewrite_test.go b/pkg/authorization/rewrite/rewrite_test.go index 0526cabdb..ee23433d4 100644 --- a/pkg/authorization/rewrite/rewrite_test.go +++ b/pkg/authorization/rewrite/rewrite_test.go @@ -17,7 +17,7 @@ package rewrite_test import ( "context" - "fmt" + "errors" "testing" "github.com/brancz/kube-rbac-proxy/pkg/authorization/rewrite" @@ -136,7 +136,7 @@ func TestRewritingAuthorizer(t *testing.T) { reason := "some error" // shouldn't happen, but just in case - return authorizer.DecisionAllow, reason, fmt.Errorf(reason) + return authorizer.DecisionAllow, reason, errors.New(reason) }, }, attrGen: simpleAttributesGenerator,