Simplify Stats#errors?

This commit is contained in:
Markus Schirp 2013-02-22 20:05:34 +01:00
parent f27c686d35
commit 9f7d33be6f

View file

@ -132,9 +132,9 @@ module Mutant
# otherwise
#
def errors?
!!@killers.values.inject(0) do |fails, counter|
fails + counter.fails
end.nonzero?
@killers.values.any? do |_, counter|
counter.nonzero?
end
end
# Return runtime in seconds