Skip to content

Commit

Permalink
removing redunant check for cancelled, which will happen anyway in th…
Browse files Browse the repository at this point in the history
…e next checkForQuiet
  • Loading branch information
aguidrevitch committed Nov 10, 2024
1 parent 400ce2b commit 8b3b88a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/gather/driver/wait-for-condition.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@ function waitForCPUIdle(session, waitForCPUQuiet) {
const timeToWait = waitForCPUQuiet - timeSinceLongTask;
return new Promise((resolve, reject) => {
setTimeout(() => {
if (canceled) {
resolve();
return;
}
checkForQuiet(executionContext)
.then(resolve)
.catch(reject);
Expand Down

0 comments on commit 8b3b88a

Please sign in to comment.