From bc0a0c081d259d7adedc4c65ecd1871b3f20c46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Wed, 12 Jan 2022 09:01:21 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20environment=20check=20?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index dc020f8dd95..72e79a92c98 100644 --- a/lib/index.js +++ b/lib/index.js @@ -20,7 +20,7 @@ const utils = require("./utils"); const analytics = require("./submit-analytics"); const environment = utils.getEnvironment(); -if (environment !== "node.js" || environment !== "electron") { +if (environment !== "node.js" && environment !== "electron") { throw new Error(`Unexpected execution environment (${environment})`); }