Skip to content

Commit

Permalink
revert console log
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpaterson committed Dec 4, 2024
1 parent 464d517 commit 372e444
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/http-client/fetch-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,14 @@ export class FetchClient implements HTTPClient, HTTPStreamClient {
};

async function* reader() {
const response = await fetch(request, options)
.then((resp) => {
console.log(resp);
return resp;
})
.catch((error) => {
throw new NetworkError(
"The network connection encountered a problem.",
{
cause: error,
},
);
});
const response = await fetch(request, options).catch((error) => {
throw new NetworkError(
"The network connection encountered a problem.",
{
cause: error,
},
);
});
const status = response.status;
if (!(status >= 200 && status < 400)) {
const failure: QueryFailure = await response.json();
Expand Down

0 comments on commit 372e444

Please sign in to comment.