Skip to content

Commit d420439

Browse files
committed
Preserve unused function arguments
1 parent 2fc9976 commit d420439

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: eslint.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"no-use-before-define": 0,
1313
"no-cond-assign": 0,
1414
"consistent-return": 0,
15-
"new-cap": 0
15+
"new-cap": 0,
16+
"no-unused-vars": 0
1617
}
1718
}

Diff for: modules/components/Route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function checkTransitionFromHooks(matches, transition) {
422422
function checkTransitionToHooks(matches, transition) {
423423
var promise = Promise.resolve();
424424

425-
matches.forEach(function (match) {
425+
matches.forEach(function (match, index) {
426426
promise = promise.then(function () {
427427
var handler = match.route.props.handler;
428428

Diff for: modules/stores/RouteStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var RouteStore = {
7171
if (route.props.name)
7272
delete _namedRoutes[route.props.name];
7373

74-
React.Children.forEach(route.props.children, function () {
74+
React.Children.forEach(route.props.children, function (child) {
7575
RouteStore.unregisterRoute(route);
7676
});
7777
},

0 commit comments

Comments
 (0)