Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKutzner committed Nov 21, 2024
1 parent 707e019 commit 95eb07f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/endpoints/routing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ std::optional<n::duration_t> calculate_search_cutoff_time(
std::optional<int> const& max_travel_time) {
if (max_travel_time.has_value()) {
// Add +1 to keep journeys with equal duration
auto const max_travel_duration =
n::duration_t{*max_travel_time + 1};
auto const max_travel_duration = n::duration_t{*max_travel_time + 1};
return fastest_direct == kInfinityDuration
? max_travel_duration
: std::min(fastest_direct, max_travel_duration);
Expand Down

0 comments on commit 95eb07f

Please sign in to comment.