Skip to content

Commit 8b3b88a

Browse files
committed
removing redunant check for cancelled, which will happen anyway in the next checkForQuiet
1 parent 400ce2b commit 8b3b88a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/gather/driver/wait-for-condition.js

-4
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,6 @@ function waitForCPUIdle(session, waitForCPUQuiet) {
252252
const timeToWait = waitForCPUQuiet - timeSinceLongTask;
253253
return new Promise((resolve, reject) => {
254254
setTimeout(() => {
255-
if (canceled) {
256-
resolve();
257-
return;
258-
}
259255
checkForQuiet(executionContext)
260256
.then(resolve)
261257
.catch(reject);

0 commit comments

Comments
 (0)