Skip to content
Snippets Groups Projects
Commit 71a79e7e authored by Markus Reiter's avatar Markus Reiter
Browse files

Ignore false RuboCop positive.

parent c6c1eacc
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ module Formatter
end
def comma_and(*items)
*items, last = items.map(&:to_s)
*items, last = items.map(&:to_s) # rubocop:disable Lint/ShadowedArgument, TODO: Remove when RuboCop 0.57.3 is released.
return last if items.empty?
"#{items.join(", ")} and #{last}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment