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>
This commit is contained in:
parent
7d8c061028
commit
242c8248f7
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ const response = await (this._fetch ?? fetch)(this._url, init);
|
|||
signal: this._abortController?.signal,
|
||||
};
|
||||
|
||||
const response = await (this._fetch ?? fetch)(this._url, init);
|
||||
const response = await (this._fetch ?? fetch)(this._url, init);
|
||||
|
||||
// We specifically handle 405 as a valid response according to the spec,
|
||||
// meaning the server does not support explicit session termination
|
||||
|
|
|
|||
Loading…
Reference in a new issue