Skip to content

Commit bdffe11

Browse files
authored
Fix redundant declaration
1 parent 33906c2 commit bdffe11

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/https.android.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
4444
peer.host = options.host;
4545
peer.commonName = options.commonName || options.host;
4646
peer.certificate = certificate;
47-
if (options.commonName) {
48-
peer.commonName = options.commonName;
49-
}
5047
if (options.allowInvalidCertificates === true) {
5148
peer.allowInvalidCertificates = true;
5249
}

0 commit comments

Comments
 (0)