dont crash if callback isn't supplied

v1.18.x
barisusakli 10 years ago
parent 2f955c3af4
commit 96c27d29f4

@ -107,6 +107,7 @@ module.exports = function(redisClient, module) {
};
module.deleteObjectField = function(key, field, callback) {
callback = callback || function() {};
redisClient.hdel(key, field, function(err, res) {
callback(err);
});

Loading…
Cancel
Save