Skip to content

Commit

Permalink
Remove auto-next call
Browse files Browse the repository at this point in the history
  • Loading branch information
calebmer committed Sep 23, 2015
1 parent 704b06b commit 36565bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/router/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Layer.prototype.handle_any = function (/* ...args, next */) {

// If the result is a promise
if (result != null && typeof result.then === 'function') {
var onFulfilled = function () { if (!hasNextBeenCalled()) { next(); } };
var onFulfilled = function () { /* Silence... */ };
var onRejected = function (error) { if (!hasNextBeenCalled()) { next(error); } };
result.then(onFulfilled, onRejected);
}
Expand Down

0 comments on commit 36565bb

Please sign in to comment.