diff --git a/js/game_manager.js b/js/game_manager.js index aea99f335af91940991c9286147d1c1c1e171084..1c13d15bd667afe06f95316942324885c45d8e6d 100644 --- a/js/game_manager.js +++ b/js/game_manager.js @@ -28,11 +28,7 @@ GameManager.prototype.keepPlaying = function () { // Return true if the game is lost, or has won and the user hasn't kept playing GameManager.prototype.isGameTerminated = function () { - if (this.over || (this.won && !this.keepPlaying)) { - return true; - } else { - return false; - } + return this.over || (this.won && !this.keepPlaying); }; // Set up the game