1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Apply corrections identified by SonarQube (#2336)

* Apply corrections identified by SonarQube

* Apply corrections identified by SonarQube

* Make type more flexible
This commit is contained in:
Michael Telatynski
2022-05-02 03:23:17 +01:00
committed by GitHub
parent 6137afeb28
commit b896111269
9 changed files with 28 additions and 32 deletions

View File

@@ -464,7 +464,7 @@ export function defer<T = void>(): IDeferred<T> {
}
export async function promiseMapSeries<T>(
promises: T[],
promises: Array<T | Promise<T>>,
fn: (t: T) => void,
): Promise<void> {
for (const o of promises) {