lib/inch/cli/command/output/stats.rb in inch-0.4.0.rc2 vs lib/inch/cli/command/output/stats.rb in inch-0.4.0.rc3
- old
+ new
@@ -107,11 +107,11 @@
end
def __scores
hash = {}
@objects.sort_by(&:score).each do |o|
- hash[o.score.to_i] ||= 0
- hash[o.score.to_i] += 1
+ hash[o.score] ||= 0
+ hash[o.score] += 1
end
hash
end
def __priorities