lib/rubocop/cop/style/redundant_freeze.rb in rubocop-0.68.0 vs lib/rubocop/cop/style/redundant_freeze.rb in rubocop-0.68.1
- old
+ new
@@ -52,10 +52,10 @@
end
def_node_matcher :operation_produces_immutable_object?, <<-PATTERN
{
(begin (send {float int} {:+ :- :* :** :/ :% :<<} _))
- (begin (send _ {:+ :- :* :** :/ :%} {float int}))
+ (begin (send !(str _) {:+ :- :* :** :/ :%} {float int}))
(begin (send _ {:== :=== :!= :<= :>= :< :>} _))
(send (const nil? :ENV) :[] _)
(send _ {:count :length :size} ...)
(block (send _ {:count :length :size} ...) ...)
}