lib/rubocop/cop/style/redundant_freeze.rb in rubocop-1.21.0 vs lib/rubocop/cop/style/redundant_freeze.rb in rubocop-1.22.0

- old
+ new

@@ -57,10 +57,9 @@ def_node_matcher :operation_produces_immutable_object?, <<~PATTERN { (begin (send {float int} {:+ :- :* :** :/ :% :<<} _)) (begin (send !{(str _) array} {:+ :- :* :** :/ :%} {float int})) (begin (send _ {:== :=== :!= :<= :>= :< :>} _)) - (send (const {nil? cbase} :ENV) :[] _) (send _ {:count :length :size} ...) (block (send _ {:count :length :size} ...) ...) } PATTERN end