From: Jérôme Benoit Date: Wed, 24 May 2023 14:11:47 +0000 (+0200) Subject: fix: revert incorrect id tags cache key building X-Git-Tag: v1.2.14~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6082281f1beebdf0126417b694c134ea4753442c;p=e-mobility-charging-stations-simulator.git fix: revert incorrect id tags cache key building Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/IdTagsCache.ts b/src/charging-station/IdTagsCache.ts index a4ce9a10..e5ee13c3 100644 --- a/src/charging-station/IdTagsCache.ts +++ b/src/charging-station/IdTagsCache.ts @@ -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); }