Skip to content

Commit

Permalink
fix(interpreter): return predicate evaluation result if it's not a fu…
Browse files Browse the repository at this point in the history
…nction too
  • Loading branch information
yusshu committed Nov 13, 2023
1 parent de4230d commit 8407f09
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public final class ExpressionEvaluatorImpl implements ExpressionEvaluator {
final Object predicateVal = b.visit(evaluator);
if (predicateVal instanceof Function) {
return ((Function) predicateVal).evaluate(evaluator);
} else {
return predicateVal;
}
}
return 0;
Expand Down

0 comments on commit 8407f09

Please sign in to comment.