lib/skylight/util/ssl.rb in skylight-5.1.0.beta vs lib/skylight/util/ssl.rb in skylight-5.1.0.beta2
- old
+ new
@@ -10,12 +10,10 @@
@ca_cert_file = false
if defined?(OpenSSL::X509::DEFAULT_CERT_FILE)
f = OpenSSL::X509::DEFAULT_CERT_FILE
- if f && File.exist?(f)
- @ca_cert_file = f
- end
+ @ca_cert_file = f if f && File.exist?(f)
end
end
detect_ca_cert_file!