Simplify Stats#errors?
This commit is contained in:
parent
f27c686d35
commit
9f7d33be6f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue