Skip to content
Myr

make application routing callback behave the same as middleware

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Soong · committed by TJ Holowaychuk · parent 02b9d0b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/router/index.js+1 added-1 removed
156 unmodified lines
157 nextRoute();158 } else if (err && fn) {159 if (fn.length < 4) return callbacks(err);160 fn(err, req, res, callbacks);161 } else if (fn) {161 } else if (fn && fn.length < 4) {162 fn(req, res, callbacks);163 } else {164 nextRoute(err);165 }
92 unmodified lines