mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +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
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue