diff options
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 7cf2810..d5485cd 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -207,7 +207,7 @@ class Commit < ActiveRecord::Base def coverage if project.coverage_enabled? && builds.count(:all) > 0 coverage_array = builds.map(&:coverage).compact - if coverage_array.size > 1 + if coverage_array.size >= 1 coverage_array.reduce(:+) / coverage_array.size end end |