Removed unnecessary await

refs https://github.com/TryGhost/DevOps/issues/119

- this is not needed and tsserver was flagging it up
This commit is contained in:
Daniel Lockyer 2023-12-07 12:20:30 +01:00 committed by Daniel Lockyer
parent 739c690a29
commit bb99a4c394

View File

@ -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);