Skip to content

Commit

Permalink
chore: reflactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Dec 22, 2022
1 parent 62f9fed commit ae7266d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,12 @@ private static List<ConditionQuery> flattenRelations(ConditionQuery query) {
}
}
relations = optimizeRelations(relations);
List<ConditionQuery> conditionQueries = new ArrayList<>();
if (relations != null) {
ConditionQuery cq = newQueryFromRelations(query, relations);
cq.query(nonRelations);
conditionQueries.add(cq);
return conditionQueries;
return ImmutableList.of(cq);
}
conditionQueries.add(query);
return conditionQueries;
return ImmutableList.of(query);
}

private static Relations optimizeRelations(Relations relations) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public HugeGraphStep(final GraphStep<S, E> originGraphStep) {

protected long count() {
if (this.ids == null) {
return 0;
return 0L;
}

if (this.returnsVertex()) {
Expand Down

0 comments on commit ae7266d

Please sign in to comment.