aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/options.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 20:57:00 -0600
committerJack Nagel2013-02-17 20:57:10 -0600
commit344c8d0d830a6fb7839a0844550e26b589d9b3e5 (patch)
tree681ccffca06a888d8d27b8df97013e6dddfeabbe /Library/Homebrew/options.rb
parentb44b1da5d562b8a0d07a3978bd7b3182b9143e79 (diff)
downloadhomebrew-344c8d0d830a6fb7839a0844550e26b589d9b3e5.tar.bz2
Don't shadow outer local variable
Diffstat (limited to 'Library/Homebrew/options.rb')
-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) })