From: Jérôme Benoit Date: Thu, 12 Jan 2023 10:27:41 +0000 (+0100) Subject: Remove unneeded intermediate variable X-Git-Tag: v1.1.90~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5bcb75d4072cc90bed58f7c1423547af490852f5;p=e-mobility-charging-stations-simulator.git Remove unneeded intermediate variable Signed-off-by: Jérôme Benoit --- 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}'`);