remove unnecessary elvis. He lives, but not needed here.

This commit is contained in:
Alexander Nozik 2023-05-01 21:29:37 +03:00
parent fcf0600d0c
commit 35efce087e

View File

@ -206,7 +206,7 @@ public class Obstacles(public val obstacles: List<Obstacle>) {
connection.obstacleIndex, connection.obstacleIndex,
connection.direction, connection.direction,
endArc endArc
) ?: error("No tangents between obstacle and endpoint") )
if (remainingObstacleIndices.none { obstacles[it].intersects(tangentToEnd.tangentTrajectory) }) return setOf( if (remainingObstacleIndices.none { obstacles[it].intersects(tangentToEnd.tangentTrajectory) }) return setOf(
TangentPath(tangents + tangentToEnd) TangentPath(tangents + tangentToEnd)