Permalink
Browse files

check for callback before you call the close callback

  • Loading branch information...
1 parent 2db05ed commit dd1010613dd515f335e02082aaea71d9f8c90f65 @Pita committed Dec 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 dirty_db.js
View
@@ -60,5 +60,5 @@ exports.database.prototype.remove = function (key, callback)
exports.database.prototype.close = function(callback)
{
- callback();
+ if(callback) callback();
}

0 comments on commit dd10106

Please sign in to comment.