We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 542208d + 3b86903 commit 6141e30Copy full SHA for 6141e30
1 file changed
js/game_manager.js
@@ -28,11 +28,7 @@ GameManager.prototype.keepPlaying = function () {
28
29
// Return true if the game is lost, or has won and the user hasn't kept playing
30
GameManager.prototype.isGameTerminated = function () {
31
- if (this.over || (this.won && !this.keepPlaying)) {
32
- return true;
33
- } else {
34
- return false;
35
- }
+ return this.over || (this.won && !this.keepPlaying);
36
};
37
38
// Set up the game
0 commit comments