lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-1.58.0 vs lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-1.59.0
- old
+ new
@@ -54,12 +54,12 @@
# @!method redundant_with_object?(node)
def_node_matcher :redundant_with_object?, <<~PATTERN
{
(block
- $(send _ {:each_with_object :with_object} _) (args (arg _)) ...)
+ $(call _ {:each_with_object :with_object} _) (args (arg _)) ...)
(numblock
- $(send _ {:each_with_object :with_object} _) 1 ...)
+ $(call _ {:each_with_object :with_object} _) 1 ...)
}
PATTERN
def message(node)
if node.method?(:each_with_object)