Merge pull request #158 from janschoenherr/patch-1

code cleanup
This commit is contained in:
Gabriele Cirulli
2014-04-16 22:05:13 +02:00
+1 -5
View File
@@ -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