lib/rubocop/cop/rspec/empty_example_group.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/empty_example_group.rb in rubocop-rspec-2.26.0

- old
+ new

@@ -160,18 +160,18 @@ !examples?(body) end end def conditionals_with_examples?(body) - return unless body.begin_type? || body.case_type? + return false unless body.begin_type? || body.case_type? body.each_descendant(:if, :case).any? do |condition_node| examples_in_branches?(condition_node) end end def examples_in_branches?(condition_node) - return if !condition_node.if_type? && !condition_node.case_type? + return false if !condition_node.if_type? && !condition_node.case_type? condition_node.branches.any? { |branch| examples?(branch) } end def removed_range(node)