[rubygems/rubygems] util/rubocop -A --only Style/RescueModifier

b490379eab
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:48:03 +09:00
parent fef0313ec7
commit 70164eec0f
12 changed files with 100 additions and 20 deletions

View file

@ -40,7 +40,11 @@ class Gem::Commands::CheckCommand < Gem::Command
def check_gems
say "Checking gems..."
say
gems = get_all_gem_names rescue []
gems = begin
get_all_gem_names
rescue
[]
end
Gem::Validator.new.alien(gems).sort.each do |key, val|
unless val.empty?