From a88fdba1fac55f211be0a8eb6a55f6274dfbc67e Mon Sep 17 00:00:00 2001 From: echenley Date: Tue, 9 Feb 2016 19:49:53 -0600 Subject: [PATCH] fix linter warning --- src/instrument.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/instrument.js b/src/instrument.js index 89f6b2ab..1b7e3c50 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -165,8 +165,9 @@ function liftReducerWith(reducer, initialCommittedState, monitorReducer, options computedStates } = liftedState; - function commitExcessActions(excess) { - // If maxAge has been exceeded, auto-commit excess. + function commitExcessActions(n) { + // Auto-commits n-number of excess actions. + let excess = n; let idsToDelete = stagedActionIds.slice(1, excess + 1); for (let i = 0; i < idsToDelete.length; i++) {