Skip to content

Commit

Permalink
Return after calling callback
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Feb 5, 2015
1 parent d7168a1 commit 999216d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ auth.entity('organization', function(req, done) {
var match = req.url.match(/^\/organizations\/(\w+)/);
if (!match) {
done(new Error('Expected url like /organizations/:orgId'));
return;
}
// pretend we're going to the db for the organization
process.nextTick(function() {
Expand Down

0 comments on commit 999216d

Please sign in to comment.