From 3b86903e65383e30ffc836b733dcaf094c33ff10 Mon Sep 17 00:00:00 2001 From: janschoenherr Date: Wed, 16 Apr 2014 10:54:51 +0200 Subject: [PATCH] code cleanup --- js/game_manager.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/game_manager.js b/js/game_manager.js index aea99f3..1c13d15 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 -- GitLab