Fix eslint warnings

This commit is contained in:
Raymond Hill 2024-03-31 13:35:11 -04:00
parent 152e9c9a95
commit 08aa3ebe10
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 1 additions and 8 deletions

View File

@ -19,8 +19,6 @@
Home: https://github.com/gorhill/uBlock
*/
'use strict';
if (
typeof vAPI === 'object' &&
typeof vAPI.DOMProceduralFilterer !== 'object'

View File

@ -19,8 +19,6 @@
Home: https://github.com/gorhill/uBlock
*/
'use strict';
/*******************************************************************************
+--> domCollapser
@ -1050,7 +1048,6 @@ vAPI.DOMFilterer = class {
const hashes = [];
const nodes = pendingNodes;
const deadline = t0 + 4;
let processed = 0;
let scanned = 0;
for (;;) {
const n = nextPendingNodes();
@ -1065,10 +1062,8 @@ vAPI.DOMFilterer = class {
classesFromNode(node, hashes);
scanned += 1;
}
processed += n;
if ( performance.now() >= deadline ) { break; }
}
//console.info(`[domSurveyor][${hostname}] Surveyed ${scanned}/${processed} nodes in ${(performance.now()-t0).toFixed(2)} ms: ${hashes.length} hashes`);
scannedCount += scanned;
if ( scannedCount >= maxSurveyNodes ) {
stop();