Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikKapila committed Jan 8, 2025
1 parent 3dce1ba commit 8359536
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ public static Set<List<ShapeId>> findAllDependentShapesWithPaths(
final List<List<ShapeId>> dependencyShapeIdsWithPaths =
getDependencyShapeIds(currentShape)
// to avoid cycles, append only those dependencyShapeId which are not already in the path currentShapeIdWithPath
.filter(dependencyShapeId -> !currentShapeIdWithPath.contains(dependencyShapeId))
.filter(dependencyShapeId ->
!currentShapeIdWithPath.contains(dependencyShapeId)
)
.map(dependencyShapeId ->
Stream
.concat(
Expand Down

0 comments on commit 8359536

Please sign in to comment.