Skip to content

Commit

Permalink
Remove forgotten uninitialized & unsued variable
Browse files Browse the repository at this point in the history
  • Loading branch information
senhalil committed Dec 29, 2021
1 parent 8d06902 commit 30882cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/heuristics/periodic_heuristic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 30882cd

Please sign in to comment.