Skip to content

Commit

Permalink
cleanup SetUserPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Cutsail <[email protected]>
  • Loading branch information
devopsjedi committed Dec 5, 2024
1 parent fd99987 commit 7da44e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions util/rbac/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,7 @@ func (e *Enforcer) SetUserPolicy(policy string) error {
e.invalidateCache(func() {
e.adapter.userDefinedPolicy = policy
})
err := e.LoadPolicy()
if err != nil {
return err
}
return nil
return e.LoadPolicy()
}

// newInformers returns an informer which watches updates on the rbac configmap
Expand Down

0 comments on commit 7da44e2

Please sign in to comment.