mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: remove superfluous 'async' from Promise executor (#12468)
This commit is contained in:
parent
1697c5c148
commit
1ad9aad211
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user