Skip to content

Commit

Permalink
fix: Basic check missed stops exists (#2707)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahpurcell authored Jul 26, 2024
1 parent 8e109a8 commit d1784fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/skate_web/controllers/detours_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ defmodule SkateWeb.DetoursController do
route_segments: route_segments,
detour_shape: ors_result
}),
# credo:disable-for-next-line
# TODO: Revisit the idea of `TripModification`s without missed stops
false <- missed_stops == [],
{:ok, modification} <-
TripModification.new(%TripModification.Input{
route_pattern: route_pattern,
Expand Down

0 comments on commit d1784fb

Please sign in to comment.