diff options
Diffstat (limited to 'devtools/client/debugger/src/actions/utils/middleware/promise.js')
-rw-r--r-- | devtools/client/debugger/src/actions/utils/middleware/promise.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/client/debugger/src/actions/utils/middleware/promise.js b/devtools/client/debugger/src/actions/utils/middleware/promise.js index 52054a1fcc..2b88bb8ca9 100644 --- a/devtools/client/debugger/src/actions/utils/middleware/promise.js +++ b/devtools/client/debugger/src/actions/utils/middleware/promise.js @@ -21,7 +21,7 @@ function seqIdGen() { return seqIdVal++; } -function promiseMiddleware({ dispatch, getState }) { +function promiseMiddleware({ dispatch }) { return next => action => { if (!(PROMISE in action)) { return next(action); @@ -42,7 +42,7 @@ function promiseMiddleware({ dispatch, getState }) { .finally(() => new Promise(resolve => executeSoon(resolve))) .then( value => { - dispatch({ ...action, status: "done", value: value }); + dispatch({ ...action, status: "done", value }); return value; }, error => { |