Skip to content

Commit

Permalink
Removed unnecessary local variable and added semicolon to a callback …
Browse files Browse the repository at this point in the history
…apply
  • Loading branch information
emerleite committed Aug 9, 2011
1 parent 6eeacac commit 0fff624
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/database-cleaner.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = DatabaseCleaner = function(type) {
var type = type;
var cleaner = {};

cleaner['mongodb'] = function(db, callback) {
Expand Down Expand Up @@ -47,7 +46,7 @@ module.exports = DatabaseCleaner = function(type) {
db.query("DELETE FROM " + table['Tables_in_database_cleaner'], function() {
count++;
if (count >= length) {
callback.apply()
callback.apply();
}
});
} else {
Expand Down

0 comments on commit 0fff624

Please sign in to comment.