Skip to content

Commit 03e696b

Browse files
committed
Merge pull request #761 from vitaliylag/patch-1
Callback should be optional when using Array args. Closes #321 #502 #694 #398
2 parents d5129d5 + 1173509 commit 03e696b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ commands.forEach(function (fullCommand) {
937937
var command = fullCommand.split(' ')[0];
938938

939939
RedisClient.prototype[command] = function (args, callback) {
940-
if (Array.isArray(args) && typeof callback === "function") {
940+
if (Array.isArray(args)) {
941941
return this.send_command(command, args, callback);
942942
} else {
943943
return this.send_command(command, to_array(arguments));

0 commit comments

Comments
 (0)