From: Jérôme Benoit Date: Wed, 20 Mar 2024 19:35:25 +0000 (+0100) Subject: refactor: cleanup utils export X-Git-Tag: v1.3.1~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=90dc299a5f5c9990aa52911b2d8fdc401776972f;p=e-mobility-charging-stations-simulator.git refactor: cleanup utils export Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/MessageChannelUtils.ts b/src/utils/MessageChannelUtils.ts index 1af746da..4164c36b 100644 --- a/src/utils/MessageChannelUtils.ts +++ b/src/utils/MessageChannelUtils.ts @@ -66,9 +66,7 @@ export const buildPerformanceStatisticsMessage = ( } } -export const buildChargingStationDataPayload = ( - chargingStation: ChargingStation -): ChargingStationData => { +const buildChargingStationDataPayload = (chargingStation: ChargingStation): ChargingStationData => { return { started: chargingStation.started, // eslint-disable-next-line @typescript-eslint/no-non-null-assertion diff --git a/src/utils/index.ts b/src/utils/index.ts index a09ae0a5..e1d6734c 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -20,7 +20,6 @@ export { watchJsonFile } from './FileUtils.js' export { logger } from './Logger.js' export { buildAddedMessage, - buildChargingStationDataPayload, buildDeletedMessage, buildPerformanceStatisticsMessage, buildStartedMessage,