Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Oct 10, 2024
1 parent fd4803d commit 288976a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ public Predicate<Itinerary> shouldBeFlaggedForRemoval() {
return it -> {
// arive by
if (it.isDirectFlex() && sortOrder.isSortedByDescendingDepartureTime()) {
// arive by
var time = it.startTime().toInstant();
return time.isBefore(earliestDepartureTime);
// depart at
} else if (it.isDirectFlex() && sortOrder.isSortedByAscendingArrivalTime()) {
// depart at
var time = it.startTime().toInstant();
return time.isAfter(latestArrivalTime);
} else {
Expand Down

0 comments on commit 288976a

Please sign in to comment.