🎨 Clean up code

This commit is contained in:
C-3PO 2019-07-22 22:30:39 +02:00
parent aab926b451
commit d786fbacfd
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -9,7 +9,9 @@ function puts(error, stdout, stderr) {
console.error(stderr); console.error(stderr);
} }
switch (os.type()) { const osType = os.type();
switch (osType) {
case "Linux": case "Linux":
childProcess.exec("npm run build-linux", puts); childProcess.exec("npm run build-linux", puts);
break; break;
@ -17,5 +19,5 @@ switch (os.type()) {
childProcess.exec("npm run build-windows", puts); childProcess.exec("npm run build-windows", puts);
break; break;
default: default:
throw new Error("Unsupported OS found: " + os.type()); throw new Error("Unsupported operating system found: " + osType);
} }