mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
fix CR
This commit is contained in:
parent
36eca5e886
commit
6e822ece40
1 changed files with 1 additions and 5 deletions
|
@ -6,9 +6,5 @@ import "regexp"
|
|||
func IsVariable(element string) bool {
|
||||
validRegex := regexp.MustCompile(variableRegex)
|
||||
groups := validRegex.FindAllStringSubmatch(element, -1)
|
||||
if len(groups) == 0 {
|
||||
// there was no match
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return len(groups) != 0
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue