Skip to content

Commit d8b1f18

Browse files
author
JooHyung Park
committed
[ai-assisted] Fix lint loop conditions
1 parent 2646f62 commit d8b1f18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/assistant/AssistantRuntimeService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export class AssistantRuntimeService {
441441
let receivedStepText = false;
442442
let response;
443443
const attemptedContextLengths = new Set<number>();
444-
while (true) {
444+
for (;;) {
445445
try {
446446
response = await this.embeddedRuntimeService.chatCompletions(
447447
{

src/main/assistant/EmbeddedLlamaRuntimeService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export class EmbeddedLlamaRuntimeService {
529529
applyChunk(parsed);
530530
};
531531

532-
while (true) {
532+
for (;;) {
533533
const { value, done } = await reader.read();
534534
buffer += decoder.decode(value, { stream: !done }).replace(/\r\n/g, '\n');
535535

0 commit comments

Comments
 (0)