Refactor runner short-circuit code

This commit is contained in:
Dan Kubb 2013-09-08 23:32:26 -07:00
parent e6f1f489af
commit 3fd3593fc2

View file

@ -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