summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/update_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 10:46:45 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit05208c3875a12a188e14328ffbd5b2eb21824f24 (patch)
tree659dc072793f13810edd33ab818b2eeb6d994e77 /lib/rubygems/commands/update_command.rb
parent7ab4ede4f5ec23d9eac6868176d99ad63df46978 (diff)
[rubygems/rubygems] util/rubocop -A --only Lint/UnusedBlockArgument
https://github.com/rubygems/rubygems/commit/d8efd919db
Diffstat (limited to 'lib/rubygems/commands/update_command.rb')
-rw-r--r--lib/rubygems/commands/update_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb
index 5c90981645..6d2a42162e 100644
--- a/lib/rubygems/commands/update_command.rb
+++ b/lib/rubygems/commands/update_command.rb
@@ -300,7 +300,7 @@ command to remove old versions.
def which_to_update(highest_installed_gems, gem_names)
result = []
- highest_installed_gems.each do |l_name, l_spec|
+ highest_installed_gems.each do |_l_name, l_spec|
next if !gem_names.empty? &&
gem_names.none? {|name| name == l_spec.name }