1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix TypeError when handling multi exception

When errors occurs using multi/exec, avoid "TypeError: Cannot read property 'length' of undefined"
This commit is contained in:
Kwangsu Kim
2013-06-26 02:48:15 +09:00
parent 35001fec76
commit 46cd9329b1

View File

@@ -1058,7 +1058,6 @@ Multi.prototype.exec = function (callback) {
} else { } else {
errors.push(new Error(err)); errors.push(new Error(err));
} }
self.queue.splice(index, 1);
} }
}); });
}, this); }, this);