Skip to content

Commit

Permalink
Merge c147555 into 8b0490d
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Jul 2, 2019
2 parents 8b0490d + c147555 commit b00ef40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ConnectSequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ function appendListIf (filter, middlewares) {
* @returns {Boolean}
*/
function isErrorHandler (cb) {
var str = cb.toString()
var args = str.split('(')[1].split(')')[0].split(',')
return args.length === 4
return cb.length === 4
}

/**
Expand Down

0 comments on commit b00ef40

Please sign in to comment.