Skip to content

Commit

Permalink
Fix tick
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Apr 22, 2013
1 parent aaf6987 commit 30a7cd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/schema.js
Expand Up @@ -134,7 +134,9 @@ function Schema(name, settings) {
}
});
} else {
process.nextTick(cb);
if (cb) {
process.nextTick(cb);
}
}
};
};
Expand Down

0 comments on commit 30a7cd8

Please sign in to comment.