From bb99a4c3940d41861398ad231ed2279d7b401780 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 7 Dec 2023 12:20:30 +0100 Subject: [PATCH] Removed unnecessary await refs https://github.com/TryGhost/DevOps/issues/119 - this is not needed and tsserver was flagging it up --- ghost/data-generator/lib/DataGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/data-generator/lib/DataGenerator.js b/ghost/data-generator/lib/DataGenerator.js index 62884ec9e0..f84c4ba98b 100644 --- a/ghost/data-generator/lib/DataGenerator.js +++ b/ghost/data-generator/lib/DataGenerator.js @@ -91,7 +91,7 @@ class DataGenerator { } let baseData = {}; try { - baseData = JSON.parse(await (await fs.readFile(baseDataPack)).toString()); + baseData = JSON.parse((await fs.readFile(baseDataPack)).toString()); this.logger.info('Read base data pack'); } catch (error) { this.logger.error('Failed to read data pack: ', error);