Use traditional for loop instead of .forEach()

This commit is contained in:
Daniel García Aubert 2017-03-29 19:54:08 +02:00
parent 2edfd1fad5
commit 56429ffebf

View File

@ -37,10 +37,10 @@ QueueSeeker.prototype._seek = function (client, cursor, users, attemps, callback
var queues = currentCursor[1];
if (queues) {
queues.forEach(function (queue) {
var user = queue.substr(QUEUE.PREFIX.length);
for (var i = 0; i < queues.length; i++) {
var user = queues[i].substr(QUEUE.PREFIX.length);
users[user] = true;
});
}
}
var hasMore = (parseInt(currentCursor[0], 10) > 0) && (attemps < MAX_SCAN_ATTEMPTS);