From 6082281f1beebdf0126417b694c134ea4753442c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 24 May 2023 16:11:47 +0200 Subject: [PATCH] fix: revert incorrect id tags cache key building MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/IdTagsCache.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } -- 2.34.1