File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ func evaluateCondition(subjectAttributes dictionary, condition condition) bool {
60
60
return isOneOf (subjectValue , convertToStringArray (condition .Value ))
61
61
case "NOT_ONE_OF" :
62
62
return isNotOneOf (subjectValue , convertToStringArray (condition .Value ))
63
- default :
63
+ case "GTE" , "GT" , "LTE" , "LT" :
64
64
// Attempt to coerce both values to float64 and compare them.
65
65
subjectValueNumeric , isNumericSubjectErr := ToFloat64 (subjectValue )
66
66
conditionValueNumeric , isNumericConditionErr := ToFloat64 (condition .Value )
@@ -84,6 +84,8 @@ func evaluateCondition(subjectAttributes dictionary, condition condition) bool {
84
84
85
85
// Fallback logic if neither numeric nor semver comparison is applicable.
86
86
return false
87
+ default :
88
+ panic (fmt .Sprintf ("unknown condition operator: %s" , condition .Operator ))
87
89
}
88
90
}
89
91
You can’t perform that action at this time.
0 commit comments