lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.49.1 vs lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.50.0
- old
+ new
@@ -71,10 +71,10 @@
if array_splat?(node) &&
(method_argument?(node) || part_of_an_array?(node))
add_offense(node, :expression, ARRAY_PARAM_MSG)
else
- add_offense(node, :expression)
+ add_offense(node)
end
end
end
private