Skip to content

Commit

Permalink
ups, my bad
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Sep 18, 2019
1 parent 51d20cb commit 8149788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/cp/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def emissions_all_years

def average_emission
none_empty_values = emissions.values.compact
return 0 if not_empty_values.empty?
return 0 if none_empty_values.empty?

none_empty_values.map(&:to_f).reduce(:+) / none_empty_values.length
end
Expand Down

0 comments on commit 8149788

Please sign in to comment.