Skip to content

Commit

Permalink
Fix for checking against long term service changes
Browse files Browse the repository at this point in the history
  • Loading branch information
blahblahblah- committed Apr 23, 2024
1 parent 4705a5a commit 3202644
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/service_change_analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ def match_route(current_route_id, reroute_service_change, recent_scheduled_routi

[current_long_term_routings, current_route_routings, current_evergreen_routings, long_term_routings, evergreen_routings, current, recent_route_routings].each do |routing_set|
route_pair = routing_set.find do |route_id, direction|
next false if long_term_routings[route_id].present? && route_id.first == current_route_id.first
next false if !reroute_service_change.begin_of_route? && !reroute_service_change.end_of_route? && route_id.first == current_route_id.first
direction&.any? do |_, routings|
station_combinations.any? do |sc|
routings.any? do |r|
Expand Down

0 comments on commit 3202644

Please sign in to comment.