Made a null-error-object a non-error

namespaces
Pål Jørgensen 2014-07-17 15:04:24 +02:00
parent c9d66ec3e9
commit 4d0a7df486
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@
*/ */
var check = function (err) { var check = function (err) {
i++; i++;
if (i === (isArray ? obj.length : ids.length) || err !== undefined) { if (i === (isArray ? obj.length : ids.length) || (err !== undefined && err !== null)) {
finished(err); finished(err);
} }
else { else {