From 71a79e7e040202c543e54198bc91539c0b7abc01 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 1 Jul 2018 01:40:58 +0200 Subject: [PATCH] Ignore false RuboCop positive. --- Library/Homebrew/utils/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/formatter.rb b/Library/Homebrew/utils/formatter.rb index 4db1abf54d..35dc881837 100644 --- a/Library/Homebrew/utils/formatter.rb +++ b/Library/Homebrew/utils/formatter.rb @@ -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}"