From 9214b603daab4382ab6d1c38e91211ab38451a4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 14 Mar 2022 21:04:14 +0100 Subject: [PATCH] Fixlet to a returned type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1