aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 20:57:00 -0600
committerJack Nagel2013-02-17 20:57:10 -0600
commit0c27a8765e2cb55f4e5e4c4d338126cfbc7886cb (patch)
tree5fbf9612add349fb5a58ae228ce9a11f1da1bcf9
parent528072f7d7c622efba30ea47f3846b9747608cdf (diff)
downloadbrew-0c27a8765e2cb55f4e5e4c4d338126cfbc7886cb.tar.bz2
Don't shadow outer local variable
-rw-r--r--Library/Homebrew/options.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index d8783a9d6..a57dafb85 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -106,10 +106,10 @@ class Options
when self then arg
when Option then new << arg
when Array
- opts = arg.map do |arg|
- case arg
- when /^-[^-]+$/ then arg[1..-1].split(//)
- else arg
+ opts = arg.map do |_arg|
+ case _arg
+ when /^-[^-]+$/ then _arg[1..-1].split(//)
+ else _arg
end
end.flatten
new(opts.map { |o| Option.new(o) })