You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Accept hmset being used without a callback. Closes #694
This commit is contained in:
2
index.js
2
index.js
@@ -996,7 +996,7 @@ RedisClient.prototype.HMGET = RedisClient.prototype.hmget;
|
||||
RedisClient.prototype.hmset = function (args, callback) {
|
||||
var tmp_args, tmp_keys, i, il, key;
|
||||
|
||||
if (Array.isArray(args) && typeof callback === "function") {
|
||||
if (Array.isArray(args)) {
|
||||
return this.send_command("hmset", args, callback);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user