Skip to content

Commit 98652ea

Browse files
authored
use two Promise.resolve statements in deferExecution (#1083)
1 parent f32ab58 commit 98652ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkg/auto-pipeline.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ class AutoPipelineExecutor {
9494
}
9595

9696
private async deferExecution() {
97-
return await new Promise<void>(resolve => {
98-
setTimeout(() => {
99-
resolve();
100-
}, 0);
101-
});
97+
await Promise.resolve()
98+
return await Promise.resolve()
10299
}
103100
}

0 commit comments

Comments
 (0)