From d44e133e1072acf690b463366422b98c95a7b509 Mon Sep 17 00:00:00 2001 From: dragongoose Date: Sat, 4 Nov 2023 19:51:21 -0400 Subject: [PATCH] lint --- src/settingsManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/settingsManager.ts b/src/settingsManager.ts index 19a611e..2205b5f 100644 --- a/src/settingsManager.ts +++ b/src/settingsManager.ts @@ -108,7 +108,7 @@ export function syncUserSettings(settings: Settings): {settings: Settings, chang } else { console.log('Settings outdated... Migrating') // converts v2.4.1 to 241 - let settingsVersion = Number(userSettings.version.slice(1, defaultSettings.version.length).split(".").join("")) + const settingsVersion = Number(userSettings.version.slice(1, defaultSettings.version.length).split(".").join("")) if (settingsVersion < 241) { oldMigration = true @@ -116,9 +116,9 @@ export function syncUserSettings(settings: Settings): {settings: Settings, chang } if (oldMigration) { - let oldSettings: any = userSettings + const oldSettings: any = userSettings delete oldSettings.version - let migrated: Settings = { + const migrated: Settings = { version: defaultSettings.version, settings: { ...oldSettings