Skip to content

Commit

Permalink
fix: core test
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Jan 11, 2022
1 parent 8493aff commit 6d47fd2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.google.common.collect.Collections2;
import org.apache.tinkerpop.gremlin.process.traversal.Compare;
import org.apache.tinkerpop.gremlin.process.traversal.Contains;
import org.apache.tinkerpop.gremlin.process.traversal.Order;
Expand Down Expand Up @@ -571,6 +572,9 @@ public static void convAllHasSteps(Traversal.Admin<?, ?> traversal) {
List<HasStep> steps =
TraversalHelper.getStepsOfAssignableClassRecursively(
HasStep.class, traversal);
if (steps.isEmpty() || !traversal.getGraph().isPresent()) {
return;
}
HugeGraph graph = (HugeGraph) traversal.getGraph().get();
for (HasStep<?> step : steps) {
TraversalUtil.convHasStep(graph, step);
Expand Down

0 comments on commit 6d47fd2

Please sign in to comment.