mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems/*: Remove unused variables warnings
Patch by Run Paint [ruby-core:30991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
571ed8655f
commit
cceca83afe
12 changed files with 17 additions and 19 deletions
|
|
@ -168,7 +168,7 @@ class Gem::Command
|
|||
"Please specify at least one gem name (e.g. gem build GEMNAME)"
|
||||
end
|
||||
|
||||
gem_names = args.select { |arg| arg !~ /^-/ }
|
||||
args.select { |arg| arg !~ /^-/ }
|
||||
end
|
||||
|
||||
##
|
||||
|
|
@ -430,7 +430,7 @@ class Gem::Command
|
|||
@parser.separator " #{header}Options:"
|
||||
|
||||
option_list.each do |args, handler|
|
||||
dashes = args.select { |arg| arg =~ /^-/ }
|
||||
args.select { |arg| arg =~ /^-/ }
|
||||
@parser.on(*args) do |value|
|
||||
handler.call(value, @options)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue