Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Apr 16, 2014
1 parent 542208d commit 3b86903
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/game_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b86903

Please sign in to comment.