1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

code review: caller always expect an array as return value

This commit is contained in:
Raymond Hill 2017-12-29 09:02:26 -05:00
parent a25166be92
commit 31791f2dd2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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; }