Skip to content

Commit a3c4e28

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 3300a43 commit a3c4e28

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
@@ -209,7 +209,7 @@ export class StreamableHTTPClientTransport implements Transport {
209209
headers.set("last-event-id", resumptionToken);
210210
}
211211

212-
const response = await (this._fetch ?? fetch)(this._url, {
212+
const response = await (this._fetch ?? fetch)(this._url, {
213213
method: "GET",
214214
headers,
215215
signal: this._abortController?.signal,

0 commit comments

Comments
 (0)