From: Jérôme Benoit Date: Wed, 29 Mar 2023 18:51:52 +0000 (+0200) Subject: refactor(simulator): simplify skip preinstall test X-Git-Tag: v1.2.0-3~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cb3617b088f3ab53f363f38782fe2ea35548d7d4;p=e-mobility-charging-stations-simulator.git refactor(simulator): simplify skip preinstall test Signed-off-by: Jérôme Benoit --- diff --git a/skip-preinstall.cjs b/skip-preinstall.cjs index fffc7d87..6181e5cf 100644 --- a/skip-preinstall.cjs +++ b/skip-preinstall.cjs @@ -1,5 +1,5 @@ -const isCFEnvironment = process.env.VCAP_APPLICATION !== undefined; -if (process.env.SKIP_PREINSTALL || isCFEnvironment) { +const skipPreinstall = process.env.SKIP_PREINSTALL || process.env.VCAP_APPLICATION !== undefined; +if (skipPreinstall) { // eslint-disable-next-line n/no-process-exit process.exit(0); } else {