Skip to content

Commit 71ee5bb

Browse files
committed
Include NodeInfo as well
1 parent 5125559 commit 71ee5bb

File tree

2 files changed

+2
-2
lines changed
  • x-pack/plugin
    • esql-core/src/main/java/org/elasticsearch/xpack/esql/core/tree
    • ql/src/main/java/org/elasticsearch/xpack/ql/tree

2 files changed

+2
-2
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/tree/NodeInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ final <E> T transform(Function<? super E, ? extends E> rule, Class<E> typeToken)
5252
List<?> children = node.children();
5353

5454
Function<Object, Object> realRule = p -> {
55-
if (p != children && false == children.contains(p) && (p == null || typeToken.isInstance(p))) {
55+
if (p != children && (p == null || typeToken.isInstance(p)) && false == children.contains(p)) {
5656
return rule.apply(typeToken.cast(p));
5757
}
5858
return p;

x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/tree/NodeInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ final <E> T transform(Function<? super E, ? extends E> rule, Class<E> typeToken)
5252
List<?> children = node.children();
5353

5454
Function<Object, Object> realRule = p -> {
55-
if (p != children && false == children.contains(p) && (p == null || typeToken.isInstance(p))) {
55+
if (p != children && (p == null || typeToken.isInstance(p)) && false == children.contains(p)) {
5656
return rule.apply(typeToken.cast(p));
5757
}
5858
return p;

0 commit comments

Comments
 (0)