fix: return early if keys is empty

v1.18.x
Baris Usakli 6 years ago
parent 1c671c32f1
commit b3962c1694

@ -18,6 +18,8 @@ module.exports = function (redisClient, module) {
module.setsAdd = function (keys, value, callback) {
callback = callback || function () {};
if (!Array.isArray(keys) || !keys.length) {
}
helpers.execKeysValue(redisClient, 'batch', 'sadd', keys, value, function (err) {
callback(err);
});

Loading…
Cancel
Save