From d6553579d5b8df2bf5f0b51ae39390ba82ab2582 Mon Sep 17 00:00:00 2001 From: Daniel Salinas Date: Wed, 6 Mar 2024 14:41:10 -0500 Subject: [PATCH] Prettier fixes --- src/sliding-sync.ts | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/sliding-sync.ts b/src/sliding-sync.ts index 6ab16b603d7..12da3d70404 100644 --- a/src/sliding-sync.ts +++ b/src/sliding-sync.ts @@ -547,19 +547,23 @@ export class SlidingSync extends TypedEventEmitter): Promise { - await Promise.all(Object.keys(ext).map(async (extName) => { - if (this.extensions[extName].when() == ExtensionState.PreProcess) { - await this.extensions[extName].onResponse(ext[extName]); - } - })); + await Promise.all( + Object.keys(ext).map(async (extName) => { + if (this.extensions[extName].when() == ExtensionState.PreProcess) { + await this.extensions[extName].onResponse(ext[extName]); + } + }), + ); } private async onPostExtensionsResponse(ext: Record): Promise { - await Promise.all(Object.keys(ext).map(async (extName) => { - if (this.extensions[extName].when() == ExtensionState.PostProcess) { - await this.extensions[extName].onResponse(ext[extName]); - } - })); + await Promise.all( + Object.keys(ext).map(async (extName) => { + if (this.extensions[extName].when() == ExtensionState.PostProcess) { + await this.extensions[extName].onResponse(ext[extName]); + } + }), + ); } /**