Skip to content

Commit aa8815e

Browse files
add async instead of Promise.resolve
1 parent 65b410e commit aa8815e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/wrangler/src/deploy/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,12 +1441,12 @@ function getDeployConfirmFunction(
14411441
const nonInteractive = isNonInteractiveOrCI();
14421442

14431443
if (nonInteractive && strictMode) {
1444-
return () => {
1444+
return async () => {
14451445
logger.error(
14461446
"Aborting the deployment operation (due to strict mode, to prevent this failure either remove the `--strict` flag)"
14471447
);
14481448
process.exitCode = 1;
1449-
return Promise.resolve(false);
1449+
return false;
14501450
};
14511451
}
14521452

0 commit comments

Comments
 (0)