mirror of
https://github.com/minio/minio.git
synced 2025-11-27 04:46:53 -05:00
pkg/wildcard: Simplify the wildcard logic further. (#2555)
This commit is contained in:
@@ -114,7 +114,7 @@ func isElasticQueue(sqsArn arnSQS) bool {
|
||||
// Match function matches wild cards in 'pattern' for events.
|
||||
func eventMatch(eventType string, events []string) (ok bool) {
|
||||
for _, event := range events {
|
||||
ok = wildcard.Match(event, eventType)
|
||||
ok = wildcard.MatchSimple(event, eventType)
|
||||
if ok {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user