Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 85e1a7b

Browse files
authoredAug 24, 2023
chore: apply automated fixes
1 parent eee9bf6 commit 85e1a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/fetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch {
320320
let chunk;
321321
console.log("Stream is readable (new data received in buffer)");
322322
// Use a loop to make sure we read all currently available data
323-
while (null !== (chunk = context.response.body.read())) {
323+
while ((chunk = context.response.body.read()) !== null) {
324324
loaded += chunk.byteLength;
325325

326326
if (context.options.onResponseProgress) {

0 commit comments

Comments
 (0)