refactor(simulator): simplify skip preinstall test
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 29 Mar 2023 18:51:52 +0000 (20:51 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 29 Mar 2023 18:51:52 +0000 (20:51 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
skip-preinstall.cjs

index fffc7d878fad5f70f6e64e9649ab0b609fade478..6181e5cf63ec7804635203cc560e65c1b41c7204 100644 (file)
@@ -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 {