From 3fd3593fc2601ee3ec184a106d145a0a082aec20 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 8 Sep 2013 23:32:26 -0700 Subject: [PATCH] Refactor runner short-circuit code --- lib/mutant/runner.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/mutant/runner.rb b/lib/mutant/runner.rb index fbc54175..5f0adc6b 100644 --- a/lib/mutant/runner.rb +++ b/lib/mutant/runner.rb @@ -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