Permalink
Browse files

fix missing "else"

  • Loading branch information...
1 parent 91ef21f commit 300bae2c8d84d84970191ac4c6098eee5c06f6c6 Carlos Rodriguez committed Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middler.js
View
@@ -54,7 +54,7 @@ Middler.prototype.handler = function middlerKernel (req, res, next) {
if (self.listeners('error').length) {
self.emit('error', err, req, res);
}
- if (next) {
+ else if (next) {
return next(err);
}
else {

0 comments on commit 300bae2

Please sign in to comment.