[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

@ -106,7 +106,11 @@ Specific fields in the specification can be extracted in YAML format:
if local?
if File.exist? gem
specs << Gem::Package.new(gem).spec rescue nil
begin
specs << Gem::Package.new(gem).spec
rescue
nil
end
end
if specs.empty?