lib/rubocop/cop/lint/format_parameter_mismatch.rb in rubocop-0.42.0 vs lib/rubocop/cop/lint/format_parameter_mismatch.rb in rubocop-0.43.0
- old
+ new
@@ -71,10 +71,10 @@
def node_with_splat_args?(node)
return false if percent?(node)
_receiver_node, _method_name, *args = *node
- args.butfirst.any? { |arg| arg.type == :splat }
+ args.butfirst.any?(&:splat_type?)
end
def heredoc?(node)
_receiver, _name, args = *node