Skip to content

Commit a496e64

Browse files
committed
rearranged fix for readability
1 parent be98009 commit a496e64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/rub/nds/tlsscanner/probe/certificate/CertificateChain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ public CertificateChain(Certificate certificate, String uri) {
201201
CertPathValidationResult certPathValidationResult = evaluateGeneralTrust(orderedCertificateChain);
202202
generallyTrusted = certPathValidationResult.isValid();
203203
if (!generallyTrusted) {
204-
if (certPathValidationResult.getCauses() != null) {
205-
CertPathValidationException[] causes = certPathValidationResult.getCauses();
204+
CertPathValidationException[] causes = certPathValidationResult.getCauses();
205+
if (causes != null) {
206206
for (CertPathValidationException exception : causes) {
207207
exception.printStackTrace();
208208
}

0 commit comments

Comments
 (0)