Skip to content

Commit 7307e22

Browse files
Minor fix
1 parent 603ae7a commit 7307e22

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.bin/create-rust-webpack.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ function isPresent(dep) {
1010
let installationStatus;
1111
try {
1212
execSync(dep, {stdio: 'ignore'});
13-
installationStatus = true;
13+
return true;
1414
} catch (...) {
15-
installationStatus = false;
15+
return false;
1616
}
17-
return installationStatus;
1817
}
1918

2019
function run(cmd, args, opts) {

0 commit comments

Comments
 (0)