Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Add comment

Add comment
  • Loading branch information
leonardehrenfried committed Oct 10, 2024
1 parent 9e293e8 commit 483a04f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ public String name() {
public Predicate<Itinerary> shouldBeFlaggedForRemoval() {
return it -> {
if (it.isDirectFlex() && sortOrder.isSortedByDescendingDepartureTime()) {
// arive by
var time = it.startTime().toInstant();
return time.isBefore(earliestDepartureTime);
} else if (it.isDirectFlex() && sortOrder.isSortedByAscendingArrivalTime()) {
// depart at
var time = it.startTime().toInstant();
return time.isAfter(latestArrivalTime);
} else {
Expand Down

0 comments on commit 483a04f

Please sign in to comment.