From: Jérôme Benoit Date: Sat, 2 Oct 2021 23:12:21 +0000 (+0200) Subject: Indentation cleanup X-Git-Tag: v1.1.23~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1830ad425799159d004ae56f2444f50d8116a935;hp=ff4b895e48c7e0c0ba57aa9e811ece2a9877340f;p=e-mobility-charging-stations-simulator.git Indentation cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/performance/storage/JSONFileStorage.ts b/src/performance/storage/JSONFileStorage.ts index 4eb5680d..7b3633a7 100644 --- a/src/performance/storage/JSONFileStorage.ts +++ b/src/performance/storage/JSONFileStorage.ts @@ -23,7 +23,8 @@ export class JSONFileStorage extends Storage { const fileData = fs.readFileSync(this.dbName, 'utf8'); const performanceRecords: Statistics[] = fileData ? JSON.parse(fileData) as Statistics[] : []; performanceRecords.push(performanceStatistics); - fs.writeFileSync(this.dbName, + fs.writeFileSync( + this.dbName, JSON.stringify(performanceRecords, (key, value) => { if (value instanceof Map) { @@ -35,7 +36,8 @@ export class JSONFileStorage extends Storage { return value as Statistics; }, 2), - 'utf8'); + 'utf8' + ); } catch (error) { FileUtils.handleFileException(this.logPrefix, Constants.PERFORMANCE_RECORDS_FILETYPE, this.dbName, error); }