Skip to content

Commit

Permalink
Remove unneeded strings.ToLower()
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Jun 17, 2024
1 parent 8c83a22 commit 6dc6990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/event_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func SubjectContained(sub string, allowedSubs []string) bool {
}

if strings.HasSuffix(s, "*") &&
strings.HasPrefix(strings.ToLower(sub), strings.TrimSuffix(s, "*")) {
strings.HasPrefix(sub, strings.TrimSuffix(s, "*")) {
return true
}
}
Expand Down

0 comments on commit 6dc6990

Please sign in to comment.