From 5bcb75d4072cc90bed58f7c1423547af490852f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 12 Jan 2023 11:27:41 +0100 Subject: [PATCH] Remove unneeded intermediate variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Configuration.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index fb77ff2e..d832d0de 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -390,7 +390,6 @@ export default class Configuration { } private static getDefaultPerformanceStorageUri(storageType: StorageType) { - const SQLiteFileName = `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`; switch (storageType) { case StorageType.JSON_FILE: return `file://${path.join( @@ -400,7 +399,7 @@ export default class Configuration { case StorageType.SQLITE: return `file://${path.join( path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../'), - SQLiteFileName + `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db` )}`; default: throw new Error(`Performance storage URI is mandatory with storage type '${storageType}'`); -- 2.34.1