Permalink
Browse files

Fix tick

  • Loading branch information...
1602 committed Apr 22, 2013
1 parent aaf6987 commit 30a7cd8cba038bde01c4e40688bc50b7f91739c4
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/schema.js
View
@@ -134,7 +134,9 @@ function Schema(name, settings) {
}
});
} else {
- process.nextTick(cb);
+ if (cb) {
+ process.nextTick(cb);
+ }
}
};
};

0 comments on commit 30a7cd8

Please sign in to comment.