Skip to content

Commit adab4aa

Browse files
authored
refactor: remove useless parameter on action handlers (#1640)
1 parent 538ee58 commit adab4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,15 @@ function registerMutation (store, type, handler, local) {
440440

441441
function registerAction (store, type, handler, local) {
442442
const entry = store._actions[type] || (store._actions[type] = [])
443-
entry.push(function wrappedActionHandler (payload, cb) {
443+
entry.push(function wrappedActionHandler (payload) {
444444
let res = handler.call(store, {
445445
dispatch: local.dispatch,
446446
commit: local.commit,
447447
getters: local.getters,
448448
state: local.state,
449449
rootGetters: store.getters,
450450
rootState: store.state
451-
}, payload, cb)
451+
}, payload)
452452
if (!isPromise(res)) {
453453
res = Promise.resolve(res)
454454
}

0 commit comments

Comments
 (0)