Remove unneeded intermediate variable
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Jan 2023 10:27:41 +0000 (11:27 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Jan 2023 10:27:41 +0000 (11:27 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.ts

index fb77ff2ea810653294e6558d1539dd251e49fbba..d832d0de8c99716d286a4de92b926f601f297a6c 100644 (file)
@@ -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}'`);