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

Support null values in arrays in reply_to_strings()

This commit is contained in:
Joffrey F
2013-01-17 13:51:42 -08:00
committed by Bryce Baril
parent 229be2068c
commit 98a190830b

View File

@@ -551,7 +551,9 @@ function reply_to_strings(reply) {
if (Array.isArray(reply)) { if (Array.isArray(reply)) {
for (i = 0; i < reply.length; i++) { for (i = 0; i < reply.length; i++) {
reply[i] = reply[i] ? reply[i].toString() : reply[i]; if (reply[i] !== null && reply[i] !== undefined) {
reply[i] = reply[i].toString();
}
} }
return reply; return reply;
} }