From 10922dcc8705fe73e4cb6b59ee0dbdc9003ecde7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 4 Mar 2023 15:32:32 +0100 Subject: [PATCH] style(simulator): align case on enum key/value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/SharedLRUCache.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/charging-station/SharedLRUCache.ts b/src/charging-station/SharedLRUCache.ts index 49c06e90..3ee8cd7f 100644 --- a/src/charging-station/SharedLRUCache.ts +++ b/src/charging-station/SharedLRUCache.ts @@ -5,8 +5,8 @@ import type { ChargingStationConfiguration, ChargingStationTemplate } from '../t import { Utils } from '../utils'; enum CacheType { - CHARGING_STATION_TEMPLATE = 'chargingStationTemplate', - CHARGING_STATION_CONFIGURATION = 'chargingStationConfiguration', + chargingStationTemplate = 'chargingStationTemplate', + chargingStationConfiguration = 'chargingStationConfiguration', } type CacheableType = ChargingStationTemplate | ChargingStationConfiguration; @@ -82,11 +82,11 @@ export class SharedLRUCache { } private getChargingStationConfigurationKey(hash: string): string { - return `${CacheType.CHARGING_STATION_CONFIGURATION}${hash}`; + return `${CacheType.chargingStationConfiguration}${hash}`; } private getChargingStationTemplateKey(hash: string): string { - return `${CacheType.CHARGING_STATION_TEMPLATE}${hash}`; + return `${CacheType.chargingStationTemplate}${hash}`; } private has(key: string): boolean { -- 2.34.1