diff --git a/lib/mutant/reporter/cli/printer/config.rb b/lib/mutant/reporter/cli/printer/config.rb index 0551580e..48fac422 100644 --- a/lib/mutant/reporter/cli/printer/config.rb +++ b/lib/mutant/reporter/cli/printer/config.rb @@ -130,8 +130,9 @@ module Mutant def generic_stats object.subjects.each_with_object(Hash.new(0)) do |runner, stats| Walker.run(runner.subject.node) do |node| - next unless Mutator::Registry.lookup(node) == Mutator::Node::Generic - stats[node.type] += 1 + if Mutator::Registry.lookup(node) == Mutator::Node::Generic + stats[node.type] += 1 + end end end end