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); }