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|
|
||||
runner = visit(object)
|
||||
collection << runner
|
||||
if runner.stop?
|
||||
@stop = true
|
||||
break
|
||||
end
|
||||
@stop = runner.stop?
|
||||
break if @stop
|
||||
end
|
||||
collection
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue