We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 595beea commit 5ca29adCopy full SHA for 5ca29ad
1 file changed
dev/src/pool.ts
@@ -380,10 +380,9 @@ class LazyLogStringForAllClientIds<T extends object> {
380
}
381
382
private logStringFromClientIds(clients: Iterable<T>): string {
383
- const clientIds: string[] = [];
384
- for (const client of clients) {
385
- clientIds.push(this.clientIdByClient.get(client) ?? '<unknown>');
386
- }
387
- return clientIds.sort().join(', ');
+ return Array.from(clients)
+ .map(client => this.clientIdByClient.get(client) ?? '<unknown>')
+ .sort()
+ .join(', ');
388
389
0 commit comments