lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-0.57.2 vs lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-0.58.0
- old
+ new
@@ -34,10 +34,10 @@
MSG_WITH_OBJECT = 'Remove redundant `with_object`.'.freeze
def_node_matcher :redundant_with_object?, <<-PATTERN
(block
$(send _ {:each_with_object :with_object}
- (_))
+ _)
(args
(arg _))
...)
PATTERN