Skip to content

Commit

Permalink
remove some code smells
Browse files Browse the repository at this point in the history
Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
  • Loading branch information
FranckLecuyer committed Jul 4, 2023
1 parent 38242e3 commit b77ae38
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,15 +518,13 @@ public boolean traverse(int v, TraversalType traversalType, Traverser traverser,
TraverseResult traverserResult = traverser.traverse(v2, e, v1);
if (traverserResult == TraverseResult.CONTINUE) {
vertexToTraverse.offer(v1);
keepGoing = true;
} else if (traverserResult == TraverseResult.TERMINATE_TRAVERSER) {
keepGoing = false;
}
} else if (!encountered[v2]) {
TraverseResult traverserResult = traverser.traverse(v1, e, v2);
if (traverserResult == TraverseResult.CONTINUE) {
vertexToTraverse.offer(v2);
keepGoing = true;
} else if (traverserResult == TraverseResult.TERMINATE_TRAVERSER) {
keepGoing = false;
}
Expand Down

0 comments on commit b77ae38

Please sign in to comment.