mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-12-23 02:31:52 +01:00
fix it
This commit is contained in:
parent
ec83d01dca
commit
d4245582a7
@ -27,11 +27,7 @@ public class QueryRankVisitor extends DetectAnnotationVisitor {
|
|||||||
collectNodeRank(query.getAnnotationOf(Annotation.Type.NODE_RANK).get(), query);
|
collectNodeRank(query.getAnnotationOf(Annotation.Type.NODE_RANK).get(), query);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean found = false;
|
return query.getChildren().stream().anyMatch(child -> child.accept(this));
|
||||||
for (Query child : query.getChildren()) {
|
|
||||||
found |= child.accept(this);
|
|
||||||
}
|
|
||||||
return found;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user