From c09151d846c293fe0646cbe9889a56044ce62b4c Mon Sep 17 00:00:00 2001 From: dgs4349 Date: Fri, 9 Oct 2020 18:38:09 -0400 Subject: [PATCH] fixed lint errors --- src/js/savegame/savegame.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/js/savegame/savegame.js b/src/js/savegame/savegame.js index 8d2d9819..6bf235df 100644 --- a/src/js/savegame/savegame.js +++ b/src/js/savegame/savegame.js @@ -169,11 +169,10 @@ export class Savegame extends ReadWriteProxy { * Returns if this game has a serialized game dump */ hasGameDump() { - if(!this.currentData.dump) return false; - if(Array.isArray(this.currentData.dump.entities)) { + if (!this.currentData.dump) return false; + if (Array.isArray(this.currentData.dump.entities)) { return this.currentData.dump.entities.length; - } - else { + } else { return this.currentData.dump.entities.size; } }