diff --git a/index.js b/index.js index 7ec74775c0..c5b85b410d 100644 --- a/index.js +++ b/index.js @@ -985,7 +985,7 @@ commands.forEach(function (fullCommand) { var command = fullCommand.split(' ')[0]; RedisClient.prototype[command] = function (args, callback) { - if (Array.isArray(args) && typeof callback === "function") { + if (Array.isArray(args)) { return this.send_command(command, args, callback); } else { return this.send_command(command, to_array(arguments));