Remove useless check

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-12-21 13:17:06 +01:00
parent 71ca7914b4
commit 79ac925b1d

View File

@ -177,7 +177,7 @@ public class MagicTrustManager implements X509TrustManager {
try {
X509Certificate[] certificates = (X509Certificate[]) sslSession.getPeerCertificates();
if (certificates.length > 0 && certificates[0] != null && isCertInTrustStore(certificates, s)) {
if (certificates.length > 0 && isCertInTrustStore(certificates, s)) {
return true;
}
} catch (SSLPeerUnverifiedException e) {