fix: fix undefined payload check in UI server code
[e-mobility-charging-stations-simulator.git] / src / charging-station / IdTagsCache.ts
index a4ce9a100608d2959529b46995e38ed13788b0a0..ff5c49d9a6a2dba2fc2810b0e6a36fa54fbbb125 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);
   }
@@ -183,7 +180,6 @@ export class IdTagsCache {
         );
       }
     }
-    logger.info(`${this.logPrefix(file)} No id tags file given in configuration`);
     return [];
   }