mirror of https://github.com/gorhill/uBlock.git
code review: caller always expect an array as return value
This commit is contained in:
parent
a25166be92
commit
31791f2dd2
|
@ -137,7 +137,7 @@
|
|||
return [ root ];
|
||||
};
|
||||
PSelector.prototype.exec = function(input) {
|
||||
if ( this.invalid ) { return; }
|
||||
if ( this.invalid ) { return []; }
|
||||
var nodes = this.prime(input);
|
||||
for ( var task of this.tasks ) {
|
||||
if ( nodes.length === 0 ) { break; }
|
||||
|
|
Loading…
Reference in New Issue