lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.76.0 vs lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.77.0
- old
+ new
@@ -153,10 +153,10 @@
def constructor?(node)
return true if node.literal?
return false unless node.send_type?
- node.method_name == :new
+ node.method?(:new)
end
end
end
end
end