refactor: remove superfluous 'async' from Promise executor (#12468)

This commit is contained in:
Konrad Kügler 2024-05-21 09:59:29 +02:00 committed by GitHub
parent 1697c5c148
commit 1ad9aad211
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ async function executeCommand(
command[0] = updateExecutablePath(command[0]!, String(project['root']));
}
await new Promise(async (resolve, reject) => {
await new Promise((resolve, reject) => {
context.logger.debug(`Trying to execute command - ${command.join(' ')}.`);
const {executable, args, debugError, error} = getExecutable(command);
let path = context.workspaceRoot;