mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-12-22 18:21:51 +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);
|
||||
}
|
||||
|
||||
boolean found = false;
|
||||
for (Query child : query.getChildren()) {
|
||||
found |= child.accept(this);
|
||||
}
|
||||
return found;
|
||||
return query.getChildren().stream().anyMatch(child -> child.accept(this));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user