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 288976a commit 645a7e0
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ public String name() {
@Override
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();
Expand Down

0 comments on commit 645a7e0

Please sign in to comment.