From 1830ad425799159d004ae56f2444f50d8116a935 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 3 Oct 2021 01:12:21 +0200 Subject: [PATCH] Indentation cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/performance/storage/JSONFileStorage.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.34.1