lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-0.68.1 vs lib/rubocop/cop/lint/redundant_with_object.rb in rubocop-0.69.0
- old
+ new
@@ -28,11 +28,11 @@
#
class RedundantWithObject < Cop
include RangeHelp
MSG_EACH_WITH_OBJECT = 'Use `each` instead of `each_with_object`.'
- .freeze
- MSG_WITH_OBJECT = 'Remove redundant `with_object`.'.freeze
+
+ MSG_WITH_OBJECT = 'Remove redundant `with_object`.'
def_node_matcher :redundant_with_object?, <<-PATTERN
(block
$(send _ {:each_with_object :with_object}
_)