Calls an action. @private @method _commit @param {Object} result @return {Promise} @throws {Error} Action doesn't exist.
(result)
| 380 | @throws {Error} Action doesn't exist. |
| 381 | */ |
| 382 | _commit(result) { |
| 383 | let action = this._actions[result.action]; |
| 384 | |
| 385 | if (action) { |
| 386 | return action.call(this, result); |
| 387 | } else { |
| 388 | throw new Error(`Tried to call action "${result.action}" but it does not exist`); |
| 389 | } |
| 390 | }, |
| 391 | |
| 392 | /** |
| 393 | Prints warning for pod unsupported. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…