From ded56c518da45c56aba20311ee8c849cd38c34fe Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sun, 20 Oct 2024 08:56:52 +0100 Subject: [PATCH] feat: adding file parser --- src/main/services/ludusavi.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/services/ludusavi.ts b/src/main/services/ludusavi.ts index 6c338a48..8d0b2ee9 100644 --- a/src/main/services/ludusavi.ts +++ b/src/main/services/ludusavi.ts @@ -9,7 +9,7 @@ import YAML from "yaml"; import ludusaviWorkerPath from "../workers/ludusavi.worker?modulePath"; import axios from "axios"; -let a = null; +let a: Record | null = null; export class Ludusavi { private static ludusaviPath = path.join(app.getPath("appData"), "ludusavi"); @@ -65,7 +65,7 @@ export class Ludusavi { } static async getBackupPreview( - shop: GameShop, + _shop: GameShop, objectId: string, backupPath: string ): Promise { @@ -80,7 +80,7 @@ export class Ludusavi { }); } - const game = a[objectId]; + const game = a?.[objectId]; // if (!games.length) return null;