Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 1, 2024
1 parent 75328f1 commit bf557fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/src/controllers/API/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ async function performStreamingRequest({
if (accessToken) {
headers["Authorization"] = `Bearer ${accessToken}`;
}
const controller = new AbortController()
const controller = new AbortController();
const params = {
method: method,
headers: headers,
signal: controller.signal
signal: controller.signal,
};
if (body) {
params["body"] = JSON.stringify(body);
Expand Down Expand Up @@ -266,7 +266,7 @@ async function performStreamingRequest({
const shouldContinue = await onData(data);
if (!shouldContinue) {
controller.abort();
return
return;
}
} else {
current.push(string);
Expand Down

0 comments on commit bf557fe

Please sign in to comment.