Skip to content

Commit c9b757a

Browse files
committed
Avoid Iterator.map
1 parent 4f4678d commit c9b757a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/client/ConnectionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class ConnectionManager extends BaseObserver<ConnectionManagerListener> {
325325
}
326326

327327
private get activeStreams() {
328-
return [...this.locallyActiveSubscriptions.values().map((a) => ({ name: a.name, params: a.parameters }))];
328+
return [...this.locallyActiveSubscriptions.values()].map((a) => ({ name: a.name, params: a.parameters }));
329329
}
330330

331331
private subscriptionsMayHaveChanged() {

0 commit comments

Comments
 (0)