From f037be514865a8dc141b7c870e7640939b5fa22a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 17 Feb 2013 22:54:43 -0600 Subject: Don't shadow outer local variables --- Library/Homebrew/compilers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/compilers.rb') diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index eaaf041b5..4742dcfb5 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -149,10 +149,10 @@ class CompilerSelector so that we can update the formula accordingly. Thanks! EOS - viable = @compilers.reject { |cc| @f.fails_with? cc } + viable = @compilers.reject { |c| @f.fails_with? c } unless viable.empty? warning += "\nIf it fails you can use " - options = viable.map { |cc| "--use-#{cc.name}" } + options = viable.map { |c| "--use-#{c.name}" } warning += "#{options*' or '} to try a different compiler." end -- cgit v1.2.3