Skip to content

Commit 7d8c061

Browse files
Update src/client/streamableHttp.ts
nullish coalescing operator ?? instead of the logical OR operator || to handle the case where this?._eventSourceInit?.fetch or this._fetch might be null or undefined but not falsy Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8e02df1 commit 7d8c061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/streamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ const response = await (this._fetch ?? fetch)(this._url, {
423423
signal: this._abortController?.signal,
424424
};
425425

426-
const response = await (this._fetch ?? fetch)(this._url, init);
426+
const response = await (this._fetch ?? fetch)(this._url, init);
427427

428428
// Handle session ID received during initialization
429429
const sessionId = response.headers.get("mcp-session-id");

0 commit comments

Comments
 (0)