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

Exchange queue with a better one

This commit is contained in:
Ruben Bridgewater
2015-10-04 22:35:17 +02:00
parent e0b9f0de79
commit 2232a8948e
6 changed files with 9 additions and 104 deletions

View File

@@ -25,11 +25,12 @@ function replyToStrings(reply) {
}
if (Array.isArray(reply)) {
var res = new Array(reply.length);
for (i = 0; i < reply.length; i++) {
// Recusivly call the function as slowlog returns deep nested replies
reply[i] = replyToStrings(reply[i]);
res[i] = replyToStrings(reply[i]);
}
return reply;
return res;
}
return reply;