Skip to content

Commit dc6691d

Browse files
committed
Streamline var usage
1 parent ab8cfbc commit dc6691d

File tree

1 file changed

+1
-1
lines changed
  • internal/operator-controller/authorization

1 file changed

+1
-1
lines changed

internal/operator-controller/authorization/rbac.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func NewRBACPreAuthorizer(cl client.Client) PreAuthorizer {
7272
// the list (or slice) of missing rules. Note that in some cases the error may encapsulate multiple
7373
// evaluation failures
7474
func (a *rbacPreAuthorizer) PreAuthorize(ctx context.Context, ext *ocv1.ClusterExtension, manifestReader io.Reader) ([]ScopedPolicyRules, error) {
75-
var allMissingPolicyRules = []ScopedPolicyRules{}
75+
var allMissingPolicyRules []ScopedPolicyRules
7676
dm, err := a.decodeManifest(manifestReader)
7777
if err != nil {
7878
return nil, err

0 commit comments

Comments
 (0)