Skip to content

Commit d46af18

Browse files
committed
cleanup
GitPrivacy: Vzs3QmeSdo0TllMrsCCSo152Ze5RPkAznxEj/YFk5rsFDa7wDLue0hhf3MSojqvYR04U1Q6gGkU= 3C7XdkpNlHzj5+jT112Vy6Hoz5513wvnjX2Pv8EuwW6csrjsZzAehSzolos9ghAEv6ygWdTW3c4=
1 parent 6a870bc commit d46af18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/scala/ScalaPlayground/Lift/Immutable/LiftImmutable.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ case class Lift(
4242
def nearestPassengerTarget: Option[Floor] =
4343
people.filter(_.matchesDirection(this)).map(_.destination).minByOption(floor => Math.abs(floor - position))
4444

45-
@tailrec
46-
final def pickup(building: Building): (Lift, Building) =
45+
@tailrec final def pickup(building: Building): (Lift, Building) =
4746
val queue = building.floors(position)
4847
queue.filter(accepts).dequeueOption match
4948
case None => (this, building)

0 commit comments

Comments
 (0)