Skip to content

Commit

Permalink
Merge pull request gabrielecirulli#158 from janschoenherr/patch-1
Browse files Browse the repository at this point in the history
code cleanup
  • Loading branch information
gabrielecirulli committed Apr 16, 2014
2 parents 542208d + 3b86903 commit 6141e30
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 6141e30

Please # to comment.