Skip to content

Commit

Permalink
Minor style improvements
Browse files Browse the repository at this point in the history
(cherry picked from commit 9f99f4a)
  • Loading branch information
Kyle Rokos authored and pmlopes committed Aug 24, 2021
1 parent 79a3a99 commit 50bd65a
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 50bd65a

Please sign in to comment.