Skip to content

Commit

Permalink
small changes for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
paulheinr committed Apr 4, 2024
1 parent 94e2f9f commit 406b710
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ final class ParkingCostHandler implements TransitDriverStartsEventHandler, Activ
private final Map<Id<Person>, Double> personId2lastLeaveVehicleTime = new HashMap<>();
private final Map<Id<Person>, String> personId2previousActivity = new HashMap<>();
private final Map<Id<Person>, Id<Link>> personId2relevantModeLinkId = new HashMap<>();
private final Map<Id<Person>, Id<Link>> personId2homeLinkId = new HashMap<>();
private final Set<Id<Person>> ptDrivers = new HashSet<>();
private final Set<Id<Person>> hasAlreadyPaidDailyResidentialParkingCosts = new HashSet<>();

Expand Down Expand Up @@ -105,9 +104,10 @@ public void handleEvent(PersonDepartureEvent event) {

@Override
public void handleEvent(PersonLeavesVehicleEvent event) {
if (!ptDrivers.contains(event.getPersonId())) {
personId2lastLeaveVehicleTime.put(event.getPersonId(), event.getTime());
if (ptDrivers.contains(event.getPersonId())) {
return;
}
personId2lastLeaveVehicleTime.put(event.getPersonId(), event.getTime());
}

@Override
Expand Down

0 comments on commit 406b710

Please sign in to comment.