From: Jérôme Benoit Date: Sat, 4 Mar 2023 14:32:32 +0000 (+0100) Subject: style(simulator): align case on enum key/value X-Git-Tag: v1.1.95~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=10922dcc8705fe73e4cb6b59ee0dbdc9003ecde7;p=e-mobility-charging-stations-simulator.git style(simulator): align case on enum key/value Signed-off-by: Jérôme Benoit --- 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 {