lib/cobench/metrics/pulls.rb in cobench-0.0.47 vs lib/cobench/metrics/pulls.rb in cobench-0.0.48
- old
+ new
@@ -63,10 +63,10 @@
total: total,
href: Iri.new('https://github.com/search').add(q: q)
},
{
title: 'LcP',
- total: lcps.size.zero? ? 0 : ((lcps.inject(&:+) / lcps.size) / (60 * 60)).to_i
+ total: lcps.empty? ? 0 : ((lcps.inject(&:+) / lcps.size) / (60 * 60)).to_i
},
{
title: 'HoC',
total: hoc
}