From 999216db421f662dc9ca8b752eccd28bae017601 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 4 Feb 2015 23:14:15 -0700 Subject: [PATCH] Return after calling callback --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 70b3b5d..073c71e 100644 --- a/README.md +++ b/README.md @@ -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() {