Permalink
Browse files

Don't shadow outer local variable

  • Loading branch information...
1 parent b44b1da commit 344c8d0d830a6fb7839a0844550e26b589d9b3e5 @jacknagel jacknagel committed Feb 18, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 Library/Homebrew/options.rb
@@ -106,10 +106,10 @@ def self.coerce(arg)
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) })

0 comments on commit 344c8d0

Please sign in to comment.