From bae61cf6ddd61bf776b77cf8a0f655b9ba89d576 Mon Sep 17 00:00:00 2001 From: frutescens Date: Sat, 9 Nov 2024 19:52:54 -0800 Subject: [PATCH] Condensed if-else pair to else if statement --- src/phases/game-over-phase.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/phases/game-over-phase.ts b/src/phases/game-over-phase.ts index f8d904c067a..a7eeae36d78 100644 --- a/src/phases/game-over-phase.ts +++ b/src/phases/game-over-phase.ts @@ -179,12 +179,10 @@ export class GameOverPhase extends BattlePhase { if (!Utils.isLocal || Utils.isLocalServerConnected) { pokerogueApi.savedata.session.newclear({ slot: this.scene.sessionSlotId, isVictory: this.isVictory, clientSessionId: clientSessionId }) .then((success) => doGameOver(!!success)); - } else { - if (this.isVictory) { - this.scene.gameData.offlineNewClear(this.scene).then(result => { - doGameOver(result); - }); - } + } else if (this.isVictory) { + this.scene.gameData.offlineNewClear(this.scene).then(result => { + doGameOver(result); + }); } }