diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-21 12:15:39 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-21 16:27:50 +0200 |
commit | 9ac342f82ff347d69b8e4813d4ca5661a485beef (patch) | |
tree | 9615fd16ea2056b326822812315ba931ee92e259 /searchlib | |
parent | 8b408aa7e5311a928cc75ef3a1b5b0cd0d71b8cd (diff) |
Avoid confusing the reader by starting off with OR. Just use null instead.
Diffstat (limited to 'searchlib')
-rwxr-xr-x | searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ArithmeticNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ArithmeticNode.java b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ArithmeticNode.java index ce5853155d4..c3e39197316 100755 --- a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ArithmeticNode.java +++ b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ArithmeticNode.java @@ -95,7 +95,7 @@ public final class ArithmeticNode extends CompositeNode { // Apply in precedence order: Deque<ValueItem> stack = new ArrayDeque<>(); - stack.push(new ValueItem(ArithmeticOperator.OR, child.next().evaluate(context))); + stack.push(new ValueItem(null, child.next().evaluate(context))); for (Iterator<ArithmeticOperator> it = operators.iterator(); it.hasNext() && child.hasNext();) { ArithmeticOperator op = it.next(); if ( ! stack.isEmpty()) { |