Skip to content

Commit 61c97ed

Browse files
committed
fix duplication
1 parent 51ef450 commit 61c97ed

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/core/src/shared/taskManager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,7 @@ export class TaskManager {
302302

303303
if (isTerminal(task.status)) {
304304
switch (task.status) {
305-
case 'completed': {
306-
const result = await this.getTaskResult({ taskId }, resultSchema, options);
307-
yield { type: 'result', result };
308-
break;
309-
}
305+
case 'completed':
310306
case 'failed': {
311307
const result = await this.getTaskResult({ taskId }, resultSchema, options);
312308
yield { type: 'result', result };

0 commit comments

Comments
 (0)