Skip to content

Commit 4200645

Browse files
authored
Fix paths get and post method dont same (#1435)
1 parent dac208a commit 4200645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/PathsTraverser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public PathSet paths(Id sourceV, Directions sourceDir,
6060

6161
PathSet paths = new PathSet();
6262
if (sourceV.equals(targetV)) {
63-
paths.add(new Path(sourceV, ImmutableList.of(sourceV)));
63+
return paths;
6464
}
6565

6666
Id labelId = this.getEdgeLabelId(label);

0 commit comments

Comments
 (0)