Skip to content

Commit

Permalink
fix(*): fix divide by zero error
Browse files Browse the repository at this point in the history
  • Loading branch information
harishsaini committed Mar 26, 2024
1 parent fa92494 commit 2ccd1fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fastlane/plugin/fueled/helper/fueled_helper.rb
Expand Up @@ -204,8 +204,8 @@ def self.calculate_code_coverage_percentage(
end
end
end

total_code_coverage_percentage = code_coverage_percentage / number_of_files
total_code_coverage_percentage = number_of_files > 0 ? code_coverage_percentage / number_of_files : 100
file_message = number_of_files > 1 ? "files" : "file"
UI.message("Checked code coverage on #{number_of_files} #{file_message} with total percentage of #{total_code_coverage_percentage}%")

Expand Down

0 comments on commit 2ccd1fa

Please sign in to comment.