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
1 changed files with 1 additions and 1 deletions

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