From a19d3505fed8b396404a89adbd97469e4e6fb2ef Mon Sep 17 00:00:00 2001 From: Fabio Bozzo Date: Wed, 18 Sep 2024 11:12:46 +0200 Subject: [PATCH] validateGlobPattern is now responsibility of the caller --- capability/policy/glob.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/capability/policy/glob.go b/capability/policy/glob.go index 5ab2f9b..34d42a0 100644 --- a/capability/policy/glob.go +++ b/capability/policy/glob.go @@ -24,10 +24,6 @@ func validateGlobPattern(pattern string) bool { // globMatch matches a string against a pattern with * wildcards, handling escaped '\*' literals. func globMatch(pattern, str string) bool { - if !validateGlobPattern(pattern) { - return false - } - // i is the index for the pattern // j is the index for the string var i, j int