Refactor runner short-circuit code
This commit is contained in:
parent
e6f1f489af
commit
3fd3593fc2
1 changed files with 2 additions and 4 deletions
|
@ -156,10 +156,8 @@ module Mutant
|
||||||
input.each do |object|
|
input.each do |object|
|
||||||
runner = visit(object)
|
runner = visit(object)
|
||||||
collection << runner
|
collection << runner
|
||||||
if runner.stop?
|
@stop = runner.stop?
|
||||||
@stop = true
|
break if @stop
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
collection
|
collection
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue