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|
runner = visit(object)
collection << runner
if runner.stop?
@stop = true
break
end
@stop = runner.stop?
break if @stop
end
collection
end