From 30882cdbc3612aa6870575e54139ef6c6f216220 Mon Sep 17 00:00:00 2001 From: halilsen Date: Wed, 29 Dec 2021 18:30:11 +0100 Subject: [PATCH] Remove forgotten uninitialized & unsued variable --- lib/heuristics/periodic_heuristic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/heuristics/periodic_heuristic.rb b/lib/heuristics/periodic_heuristic.rb index bc7291e08..4275b2d30 100644 --- a/lib/heuristics/periodic_heuristic.rb +++ b/lib/heuristics/periodic_heuristic.rb @@ -846,7 +846,7 @@ def get_previous_info(route_data, position) def best_cost_according_to_tws(route_data, service_id, service_data, previous, options) activity = options[:activity] - duration = (@same_point_day && options[:first_visit] && !@end_phase) ? service_data[:group_duration] : service_data[:durations][activity] + duration = (@same_point_day && options[:first_visit]) ? service_data[:group_duration] : service_data[:durations][activity] potential_tws = find_timewindows(previous, { id: service_id, point_id: service_data[:points_ids][activity], setup_duration: service_data[:setup_durations][activity], duration: duration, tw: service_data[:tws_sets][activity] }, route_data) potential_tws.collect{ |tw|