From 2798347c50be964873aabe5e99269953a821b6a5 Mon Sep 17 00:00:00 2001 From: Sebastian Schwarz <12232063+itsmebasti@users.noreply.github.com> Date: Fri, 6 May 2022 10:16:34 +0200 Subject: [PATCH] reverted unnecessary state handling --- src/modules/tetris/app/app.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/modules/tetris/app/app.js b/src/modules/tetris/app/app.js index b700c8c..4c9aa65 100644 --- a/src/modules/tetris/app/app.js +++ b/src/modules/tetris/app/app.js @@ -106,13 +106,7 @@ export default class App extends LightningElement { } requestStart() { - Promise.resolve() - .then(() => { - if(this.engine.running) { - throw "Please retry, the game is still running!"; - } - return this.session.startBlockStream(); - }) + this.session.startBlockStream() .catch(this.toast) .then(this.toast); }