mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02: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
|
@ -181,11 +181,11 @@ class Gem::Commands::UpdateCommand < Gem::Command
|
|||
end
|
||||
end
|
||||
|
||||
matching_gems = spec_tuples.select do |(name, version, platform),|
|
||||
matching_gems = spec_tuples.select do |(name, _, platform),|
|
||||
name == l_name and Gem::Platform.match platform
|
||||
end
|
||||
|
||||
highest_remote_gem = matching_gems.sort_by do |(name, version),|
|
||||
highest_remote_gem = matching_gems.sort_by do |(_, version),|
|
||||
version
|
||||
end.last
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue