lib/reek/ast/sexp_extensions/if.rb in reek-6.0.6 vs lib/reek/ast/sexp_extensions/if.rb in reek-6.1.0

- old
+ new

@@ -29,10 +29,10 @@ children.first end # @quality :reek:FeatureEnvy def body_nodes(type, ignoring = []) - children[1..-1].compact.flat_map do |child| + children[1..].compact.flat_map do |child| if ignoring.include? child.type [] else child.each_node(type, ignoring | type).to_a end