Skip to content

Commit 603ae7a

Browse files
tweaks
1 parent 419e9c5 commit 603ae7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.bin/create-rust-webpack.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const path = require("path");
66
const cpr = require("cpr");
77
const rimraf = require("rimraf");
88

9-
function validateInstallation(dep) {
9+
function isPresent(dep) {
1010
let installationStatus;
1111
try {
1212
execSync(dep, {stdio: 'ignore'});
1313
installationStatus = true;
14-
} catch (err) {
14+
} catch (...) {
1515
installationStatus = false;
1616
}
1717
return installationStatus;
@@ -29,8 +29,8 @@ function run(cmd, args, opts) {
2929
}
3030
}
3131

32-
if (!validateInstallation("git help -g")) {
33-
console.log('\n git is required to be installed!');
32+
if (!isPresent("git help -g")) {
33+
console.log('\n git is required');
3434
process.exit(1);
3535
}
3636

0 commit comments

Comments
 (0)