fixed tests

This commit is contained in:
Baris Soner Usakli
2014-03-06 14:51:43 -05:00
parent 7135e9424c
commit 4986c8ed3a
6 changed files with 56 additions and 48 deletions

View File

@@ -117,11 +117,9 @@
module.flushdb = function(callback) {
redisClient.send_command('flushdb', [], function(err) {
if (err) {
winston.error(err.message);
return callback(err);
if (typeof callback === 'function') {
callback();
}
callback();
});
};