Skip to content

Commit

Permalink
use two Promise.resolve statements in deferExecution (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda authored May 27, 2024
1 parent f32ab58 commit 98652ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/auto-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ class AutoPipelineExecutor {
}

private async deferExecution() {
return await new Promise<void>(resolve => {
setTimeout(() => {
resolve();
}, 0);
});
await Promise.resolve()
return await Promise.resolve()
}
}

0 comments on commit 98652ea

Please sign in to comment.