diff --git a/lib/router/index.js b/lib/router/index.js index 1f426068d7..51db4c28ff 100644 --- a/lib/router/index.js +++ b/lib/router/index.js @@ -626,7 +626,7 @@ function restore(fn, obj) { vals[i] = obj[props[i]]; } - return function(err){ + return function () { // restore vals for (var i = 0; i < props.length; i++) { obj[props[i]] = vals[i];