Skip to content

Commit 8e02df1

Browse files
Update src/client/sse.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 a3c4e28 commit 8e02df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/sse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const fetchImpl = (this?._eventSourceInit?.fetch ?? this._fetch ?? fetch) as typ
251251
signal: this._abortController?.signal,
252252
};
253253

254-
const response = await (this._fetch ?? fetch)(this._endpoint, init);
254+
const response = await (this._fetch ?? fetch)(this._endpoint, init);
255255
if (!response.ok) {
256256
if (response.status === 401 && this._authProvider) {
257257

0 commit comments

Comments
 (0)