Skip to content

Commit

Permalink
incorrect operator
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Murphy <[email protected]>
  • Loading branch information
2000rosser committed May 23, 2024
1 parent 029ac5f commit 203028a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public boolean matches(final PolicyCondition.Operator operator, final BigDecimal
case NUMERIC_GREATER_THAN_OR_EQUAL -> vulnerabilityEpss.compareTo(conditionDecimalValue) >= 0;
case NUMERIC_EQUAL -> vulnerabilityEpss.compareTo(conditionDecimalValue) == 0;
case NUMERIC_NOT_EQUAL -> vulnerabilityEpss.compareTo(conditionDecimalValue) != 0;
case NUMERIC_LESSER_THAN_OR_EQUAL -> vulnerabilityEpss.compareTo(conditionDecimalValue) >= 0;
case NUMERIC_LESSER_THAN_OR_EQUAL -> vulnerabilityEpss.compareTo(conditionDecimalValue) <= 0;
case NUMERIC_LESS_THAN -> vulnerabilityEpss.compareTo(conditionDecimalValue) < 0;
default -> {
LOGGER.warn("Operator %s is not supported for EPSS conditions".formatted(operator));
Expand Down

0 comments on commit 203028a

Please sign in to comment.