Skip to content

Commit

Permalink
Prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zzorba committed Mar 6, 2024
1 parent d5a7576 commit d655357
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/sliding-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,19 +547,23 @@ export class SlidingSync extends TypedEventEmitter<SlidingSyncEvent, SlidingSync
}

private async onPreExtensionsResponse(ext: Record<string, object>): Promise<void> {
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<string, object>): Promise<void> {
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]);
}
}),
);
}

/**
Expand Down

0 comments on commit d655357

Please sign in to comment.