dont crash if callback isn't supplied

This commit is contained in:
barisusakli
2015-01-19 20:49:24 -05:00
parent 2f955c3af4
commit 96c27d29f4

View File

@@ -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);
});