Skip to content

Commit

Permalink
Avoid unnecessary 'next' during authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
pvorb committed Apr 5, 2013
1 parent 13bfe19 commit ad41b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flatiron-passport.js
Expand Up @@ -49,7 +49,7 @@ exports.authenticate = function(name, options, callback) {
passport.authenticate(name, options, callback)(this.req, this.res, (function(self) {
return function(cb) {
if (typeof self.cb === 'function') {
self.cb();
return self.cb();
}
self.res.emit('next');
}
Expand Down

0 comments on commit ad41b40

Please sign in to comment.