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

@@ -166,15 +166,8 @@
module.flushdb = function(callback) {
db.dropDatabase(function(err, result) {
if (err) {
winston.error(err.message);
if (typeof callback === 'function') {
return callback(err);
}
}
if (typeof callback === 'function') {
callback();
callback(err);
}
});
};