Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

allow `next(fn)`? #886

Closed
eivindfjeldstad opened this Issue · 1 comment

2 participants

@eivindfjeldstad

has this ever been discussed before?

function create (req, res, next) {
  // blah blah..
  if (something) {
    return next(other);
  }

  res.send('ok');
}

function other (req, res, next) {
  res.send('blah');
}

This would be equivalent to calling other(req, res, next)

@tj
Owner
tj commented

not common enough to optimize IMO, plus it's less obscure to just pass the args

@tj tj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.