fix: revert incorrect id tags cache key building
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 24 May 2023 14:11:47 +0000 (16:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 24 May 2023 14:11:47 +0000 (16:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/IdTagsCache.ts

index a4ce9a100608d2959529b46995e38ed13788b0a0..e5ee13c351e82665f26327d66526824bb0c16e36 100644 (file)
@@ -64,10 +64,7 @@ export class IdTagsCache {
    */
   public getIdTags(file: string): string[] | undefined {
     if (this.hasIdTagsCache(file) === false) {
-      this.setIdTagsCache(
-        Utils.isNotEmptyString(file) ? file : 'empty',
-        this.getIdTagsFromFile(file)
-      );
+      this.setIdTagsCache(file, this.getIdTagsFromFile(file));
     }
     return this.getIdTagsCache(file);
   }