Skip to content

Commit

Permalink
[issue-193] fixing lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Katarzyna Kulpa <[email protected]>
  • Loading branch information
katarzynakulpa committed Nov 28, 2023
1 parent 0df3a58 commit 0d7d3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/validator/rbac/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r *rbac) ValidateServiceAccountIsBound(ctx context.Context, rules *models.
continue
}
if r.matcher.MatchPolicyRules(matchesRoles[i].Rules, rules.Role.Rules) {
return nil
return err
}
}
return NewRBACError(fmt.Sprintf("failed to find any roles, matched to passed service account, "+
Expand Down

0 comments on commit 0d7d3e3

Please sign in to comment.