diff --git a/index.js b/index.js index 798b78954b..23c11ef333 100644 --- a/index.js +++ b/index.js @@ -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.