1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Merge pull request #1204 from liujiaqiid/patch-1

Fix option param null bug
This commit is contained in:
Ruben Bridgewater
2017-03-11 13:42:20 -03:00
committed by GitHub

View File

@@ -931,7 +931,7 @@ RedisClient.prototype.internal_send_command = function (command_obj) {
args_copy[i] = this.options.prefix + args_copy[i];
}
}
if (typeof this.options.rename_commands !== 'undefined' && this.options.rename_commands[command]) {
if (this.options.rename_commands && this.options.rename_commands[command]) {
command = this.options.rename_commands[command];
}
// Always use 'Multi bulk commands', but if passed any Buffer args, then do multiple writes, one for each arg.