Skip to content

Commit

Permalink
add return statement after callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Becheras committed Jan 2, 2017
1 parent 1a96f64 commit 97b6890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ConnectSequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ function appendIf (filter, middleware) {
this.append(function (req, res, next) {
if (filter(req)) {
middleware(req, res, next)
return
} else {
next()
return
}
})
}

0 comments on commit 97b6890

Please sign in to comment.