use spread

This commit is contained in:
jaydenfyi 2026-01-25 11:07:23 +08:00
parent 938f55e679
commit fecc028709

View File

@ -92,7 +92,7 @@ export async function removeClientManager(accountId: string): Promise<void> {
* @returns Promise that resolves when all cleanup is complete * @returns Promise that resolves when all cleanup is complete
*/ */
export async function removeAllClientManagers(): Promise<void> { export async function removeAllClientManagers(): Promise<void> {
const promises = Array.from(registry.keys()).map((accountId) => removeClientManager(accountId)); const promises = [...registry.keys()].map((accountId) => removeClientManager(accountId));
await Promise.all(promises); await Promise.all(promises);
} }