Skip to content

Commit

Permalink
Do not load calculations if threshold is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
entantoencuanto committed Dec 2, 2024
1 parent 4df2dfc commit ca40ee6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def remove_calculations_file

def load_calculations
@scores_counts = {}
return unless File.exist?(calculations_path)
return unless File.exist?(calculations_path) && current_config.threshold.present?

calculations = CSV.read(calculations_path, headers: true, col_sep: ";")
rules_headers = calculations.headers.grep(/ - \d+/)
Expand Down

0 comments on commit ca40ee6

Please sign in to comment.