sonarcloud fix reject(error)
https://sonarcloud.io/project/issues?cleanCodeAttributeCategories=CONSISTENT&resolved=false&id=vogler_free-games-claimer&open=AYupZi4O_aoWVkCdISRb&tab=code
This commit is contained in:
parent
a62aa8c0c8
commit
a6b9ec9609
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ const execp = (cmd) => new Promise((resolve, reject) => {
|
||||||
if (error.message.includes('command not found')) {
|
if (error.message.includes('command not found')) {
|
||||||
console.info('Install git to check for updates!');
|
console.info('Install git to check for updates!');
|
||||||
}
|
}
|
||||||
return reject();
|
return reject(error);
|
||||||
}
|
}
|
||||||
resolve(stdout.trim());
|
resolve(stdout.trim());
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue