mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
b595d3cf0f
This commit is contained in:
parent
a532e9dc37
commit
72d09a568f
16 changed files with 148 additions and 188 deletions
|
@ -44,13 +44,11 @@ class Gem::Security::TrustDir
|
|||
glob = File.join @dir, "*.pem"
|
||||
|
||||
Dir[glob].each do |certificate_file|
|
||||
begin
|
||||
certificate = load_certificate certificate_file
|
||||
certificate = load_certificate certificate_file
|
||||
|
||||
yield certificate, certificate_file
|
||||
rescue OpenSSL::X509::CertificateError
|
||||
next # HACK: warn
|
||||
end
|
||||
yield certificate, certificate_file
|
||||
rescue OpenSSL::X509::CertificateError
|
||||
next # HACK: warn
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue