Skip to content

Commit 3b86903

Browse files
committed
code cleanup
1 parent 542208d commit 3b86903

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

js/game_manager.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ GameManager.prototype.keepPlaying = function () {
2828

2929
// Return true if the game is lost, or has won and the user hasn't kept playing
3030
GameManager.prototype.isGameTerminated = function () {
31-
if (this.over || (this.won && !this.keepPlaying)) {
32-
return true;
33-
} else {
34-
return false;
35-
}
31+
return this.over || (this.won && !this.keepPlaying);
3632
};
3733

3834
// Set up the game

0 commit comments

Comments
 (0)