lib/berkshelf/ssl_policies.rb in berkshelf-7.0.8 vs lib/berkshelf/ssl_policies.rb in berkshelf-7.0.9
- old
+ new
@@ -6,12 +6,10 @@
# @return [Store]
# Holds trusted CA certificates used to verify peer certificates
attr_reader :store
def initialize
- @store = OpenSSL::X509::Store.new.tap do |store|
- store.set_default_paths
- end
+ @store = OpenSSL::X509::Store.new.tap(&:set_default_paths)
set_custom_certs if ::File.exist?(trusted_certs_dir)
end
def add_trusted_cert(cert)