From: Jérôme Benoit Date: Mon, 14 Mar 2022 20:04:14 +0000 (+0100) Subject: Fixlet to a returned type X-Git-Tag: v1.1.55~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9214b603daab4382ab6d1c38e91211ab38451a4c;p=e-mobility-charging-stations-simulator.git Fixlet to a returned type Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index ba6fd61f..434de010 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -767,7 +767,7 @@ export default class ChargingStation { return randomSerialNumberSuffix; } - private getTemplateFromFile(): ChargingStationTemplate { + private getTemplateFromFile(): ChargingStationTemplate | null { let template: ChargingStationTemplate = null; try { template = JSON.parse(fs.readFileSync(this.templateFile, 'utf8')) as ChargingStationTemplate;