Skip to content

Commit

Permalink
Minor style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Rokos authored and vietj committed Aug 24, 2021
1 parent 05c34a9 commit 9f99f4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/vertx/core/net/impl/KeyStoreHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,11 @@ private static KeyStore createEmptyKeyStore() throws KeyStoreException {
final KeyStore keyStore;
String defaultKeyStoreType = KeyStore.getDefaultType();

if(defaultKeyStoreType.equalsIgnoreCase("jks") && Security.getAlgorithms("KeyStore").contains("PKCS12")) {
if (defaultKeyStoreType.equalsIgnoreCase("jks") && Security.getAlgorithms("KeyStore").contains("PKCS12")) {
keyStore = KeyStore.getInstance("PKCS12");
} else {
keyStore = KeyStore.getInstance(defaultKeyStoreType);
}

try {
keyStore.load(null, null);
} catch (CertificateException | NoSuchAlgorithmException | IOException e) {
Expand Down

0 comments on commit 9f99f4a

Please sign in to comment.