Skip to content

Commit 242c824

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 7d8c061 commit 242c824

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
@@ -529,7 +529,7 @@ const response = await (this._fetch ?? fetch)(this._url, init);
529529
signal: this._abortController?.signal,
530530
};
531531

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

534534
// We specifically handle 405 as a valid response according to the spec,
535535
// meaning the server does not support explicit session termination

0 commit comments

Comments
 (0)