Skip to content

Commit ff06d69

Browse files
committed
fix: use spread operator instead of Array.from to satisfy lint rule
Replace Array.from(map.values()) with [...map.values()] to fix the unicorn/prefer-spread ESLint rule.
1 parent dac3d4e commit ff06d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/server/streamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ export class WebStandardStreamableHTTPServerTransport implements Transport {
912912

913913
// Snapshot and clear before iterating to avoid issues with
914914
// cleanup callbacks that modify the map during iteration.
915-
const streams = Array.from(this._streamMapping.values());
915+
const streams = [...this._streamMapping.values()];
916916
this._streamMapping.clear();
917917
this._requestResponseMap.clear();
918918

0 commit comments

Comments
 (0)