diff --git a/package.json b/package.json index 97f1e9bf..f2282d63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jssm", - "version": "0.19.0", + "version": "0.19.1", "description": "A Javascript state machine with a simple API. Well tested, and typed with Flowtype. MIT License.", "main": "dist/jssm.es5.browserified.js", "scripts": { diff --git a/src/js/jssm.js b/src/js/jssm.js index 8b4a874a..4afcba64 100644 --- a/src/js/jssm.js +++ b/src/js/jssm.js @@ -423,11 +423,7 @@ todo comeback current_action_for(action : mNT) : number | void { const action_base = this._actions.get(action); - if (action_base) { - return action_base.get(this.state()); - } else { - return undefined; - } + return action_base? action_base.get(this.state()) : undefined; } current_action_edge_for(action : mNT) : JssmTransition | void {