Simplify condition

pull/126/head^2
tycrek 3 years ago
parent 7cf60f965c
commit 1c068bde3c
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -18,7 +18,7 @@ try {
var { useSsl, port, domain, isProxied, diskFilePath, s3bucket, s3endpoint, s3usePathStyle } = require('../config.json'); // skipcq: JS-0239, JS-0102 var { useSsl, port, domain, isProxied, diskFilePath, s3bucket, s3endpoint, s3usePathStyle } = require('../config.json'); // skipcq: JS-0239, JS-0102
} catch (ex) { } catch (ex) {
// @ts-ignore // @ts-ignore
if (ex.code !== 'MODULE_NOT_FOUND' || !Object.prototype.toString.call(ex).includes('Unexpected end of JSON input')) console.error(ex); if (ex.code !== 'MODULE_NOT_FOUND' || !ex.toString().includes('Unexpected end')) console.error(ex);
} }
export function getTrueHttp() { export function getTrueHttp() {

Loading…
Cancel
Save