We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e6800 commit f5d14beCopy full SHA for f5d14be
src/main/java/org/jruby/ext/openssl/X509Store.java
@@ -189,7 +189,7 @@ public IRubyObject set_default_paths(final ThreadContext context) {
189
190
@JRubyMethod
191
public X509Store add_cert(final IRubyObject cert) {
192
- X509AuxCertificate auxCert = (cert instanceof X509Cert) ? ((X509Cert) cert).getAuxCert() : (X509AuxCertificate)null;
+ X509AuxCertificate auxCert = cert instanceof X509Cert ? ((X509Cert) cert).getAuxCert() : null;
193
if ( store.addCertificate(auxCert) != 1 ) {
194
throw newStoreError(getRuntime(), X509Error.getLastErrorMessage());
195
}
0 commit comments