Skip to content

Commit ed69a7a

Browse files
committed
removed status error
1 parent 5a07c82 commit ed69a7a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/wrapper/lib/parse.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import z, { type ZodType } from "zod";
66
import type { BrowserUse } from "../../index.js";
77
import type { BrowserUseTasks } from "../api/BrowserUseTasks.js";
88
import type { CreateTaskRequest, TaskView } from "../../api/index.js";
9-
import { ExhaustiveSwitchCheck } from "./types.js";
109

1110
// RUN
1211

@@ -162,8 +161,8 @@ export function wrapCreateTaskResponse(
162161
case "started":
163162
await new Promise((resolve) => setTimeout(resolve, intervalMs));
164163
break;
165-
default:
166-
throw new ExhaustiveSwitchCheck(res.status as never);
164+
// default:
165+
// throw new ExhaustiveSwitchCheck(res.status as never);
167166
}
168167
} while (true);
169168
}
@@ -242,8 +241,8 @@ export function wrapCreateTaskResponse(
242241
case "stopped":
243242
case "started":
244243
break;
245-
default:
246-
throw new ExhaustiveSwitchCheck(msg.data.status as never);
244+
// default:
245+
// throw new ExhaustiveSwitchCheck(msg.data.status as never);
247246
}
248247
}
249248

0 commit comments

Comments
 (0)