Skip to content

Commit

Permalink
reverted unnecessary state handling
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmebasti committed May 6, 2022
1 parent 7b11574 commit 2798347
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/modules/tetris/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2798347

Please sign in to comment.