mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 19:33:01 +01:00
code review re cd7b1c0eb4
This commit is contained in:
parent
cd7b1c0eb4
commit
bf28a83e2d
@ -838,17 +838,15 @@ FilterContainer.prototype.skipGenericCompiledContent = function(reader) {
|
||||
// 1000 = cosmetic filtering
|
||||
reader.select(1000);
|
||||
|
||||
let bucket;
|
||||
|
||||
while ( reader.next() ) {
|
||||
this.acceptedCount += 1;
|
||||
let fingerprint = reader.fingerprint();
|
||||
const fingerprint = reader.fingerprint();
|
||||
if ( this.duplicateBuster.has(fingerprint) ) {
|
||||
this.discardedCount += 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
let args = reader.args();
|
||||
const args = reader.args();
|
||||
|
||||
switch ( args[0] ) {
|
||||
|
||||
@ -863,7 +861,7 @@ FilterContainer.prototype.skipGenericCompiledContent = function(reader) {
|
||||
// hash, example.*, .promoted-tweet
|
||||
case 8:
|
||||
this.duplicateBuster.add(fingerprint);
|
||||
bucket = this.specificFilters.get(args[1]);
|
||||
const bucket = this.specificFilters.get(args[1]);
|
||||
if ( bucket === undefined ) {
|
||||
this.specificFilters.set(
|
||||
args[1],
|
||||
|
Loading…
Reference in New Issue
Block a user