Skip to content

Commit bf1fb5e

Browse files
authored
Merge pull request #1204 from liujiaqiid/patch-1
Fix option param null bug
2 parents 0a4a4eb + 6bb0d00 commit bf1fb5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

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

0 commit comments

Comments
 (0)