From d786fbacfd46d076646b5b6e8f7eaa43613b04e8 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 22 Jul 2019 22:30:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Clean=20up=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index e43bea7..16336ba 100644 --- a/build.js +++ b/build.js @@ -9,7 +9,9 @@ function puts(error, stdout, stderr) { console.error(stderr); } -switch (os.type()) { +const osType = os.type(); + +switch (osType) { case "Linux": childProcess.exec("npm run build-linux", puts); break; @@ -17,5 +19,5 @@ switch (os.type()) { childProcess.exec("npm run build-windows", puts); break; default: - throw new Error("Unsupported OS found: " + os.type()); + throw new Error("Unsupported operating system found: " + osType); }