Skip to content

Commit cb0d5e3

Browse files
committed
fix white space
1 parent dc902dc commit cb0d5e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/https.android.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
4343
}
4444
peer.host = options.host;
4545
peer.commonName = options.host;
46-
if( options.commonName != null ){
47-
peer.commonName = options.commonName
46+
if ( options.commonName != null ) {
47+
peer.commonName = options.commonName;
4848
}
4949
peer.certificate = certificate;
5050
if (options.allowInvalidCertificates === true) {
@@ -135,7 +135,7 @@ function getClient(reload: boolean = false, timeout: number = 10): okhttp3.OkHtt
135135
hv.verify(peer.host, session) &&
136136
peer.host === hostname &&
137137
peer.host === session.getPeerHost() &&
138-
pp.indexOf(peer.commonName) != -1
138+
pp.indexOf(peer.commonName) !== -1
139139
);
140140
},
141141
}));
@@ -228,10 +228,10 @@ export function request(opts: Https.HttpsRequestOptions): Promise<Https.HttpsRes
228228
// }
229229

230230
let content = response.body().string();
231-
try {
232-
content = JSON.parse(content);
233-
} catch (e) {
234-
}
231+
try {
232+
content = JSON.parse(content);
233+
} catch (e) {
234+
}
235235

236236
let statusCode = response.code();
237237

0 commit comments

Comments
 (0)