From 4094f4854745c0141441f4ddc7b8b1422bf7b3c4 Mon Sep 17 00:00:00 2001 From: Manish Jethani Date: Tue, 3 Aug 2021 21:33:11 +0530 Subject: [PATCH] Fix style in index.js (#3802) --- platform/nodejs/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/nodejs/index.js b/platform/nodejs/index.js index 360e048ac..877cc1193 100644 --- a/platform/nodejs/index.js +++ b/platform/nodejs/index.js @@ -119,13 +119,13 @@ function pslInit(raw) { // Use loadJSON() because require() would keep the string in memory. serialized = loadJSON('build/publicsuffixlist.json'); } catch (error) { - if (process.env.npm_lifecycle_event !== 'install') { + if ( process.env.npm_lifecycle_event !== 'install' ) { // This should never happen except during package installation. console.error(error); } } - if (serialized !== null) { + if ( serialized !== null ) { globals.publicSuffixList.fromSelfie(serialized); return globals.publicSuffixList; } @@ -165,7 +165,7 @@ function reset() { // This is because some of the code (e.g. publicsuffixlist.js) sets // module.exports. Once all included files are written like ES modules, using // export statements, this should no longer be necessary. -if (typeof module !== 'undefined' && typeof exports !== 'undefined') { +if ( typeof module !== 'undefined' && typeof exports !== 'undefined' ) { module.exports = exports; }