mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RescueModifier
b490379eab
This commit is contained in:
parent
fef0313ec7
commit
70164eec0f
12 changed files with 100 additions and 20 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue