From 1ad9aad21133e844347388454c747236da406337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20K=C3=BCgler?= Date: Tue, 21 May 2024 09:59:29 +0200 Subject: [PATCH] refactor: remove superfluous 'async' from Promise executor (#12468) --- packages/ng-schematics/src/builders/puppeteer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ng-schematics/src/builders/puppeteer/index.ts b/packages/ng-schematics/src/builders/puppeteer/index.ts index e8caab83c94..3e11ae93b0e 100644 --- a/packages/ng-schematics/src/builders/puppeteer/index.ts +++ b/packages/ng-schematics/src/builders/puppeteer/index.ts @@ -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;