Skip to content

Commit

Permalink
pkg/authz/rewrite: fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ibihim committed Sep 9, 2024
1 parent 67d7b53 commit 144327b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/authorization/rewrite/rewrite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package rewrite_test

import (
"context"
"fmt"
"errors"
"testing"

"github.com/brancz/kube-rbac-proxy/pkg/authorization/rewrite"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 144327b

Please sign in to comment.