Skip to content

Commit 9a4dfe3

Browse files
committed
fix typescript
1 parent 7b9264b commit 9a4dfe3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/opencode/src/server/router.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { MiddlewareHandler } from "hono"
2-
import { Flag } from "../flag/flag"
32
import { getAdaptor } from "@/control-plane/adaptors"
43
import { WorkspaceID } from "@/control-plane/schema"
54
import { Workspace } from "@/control-plane/workspace"
@@ -71,7 +70,7 @@ export const WorkspaceRouterMiddleware: MiddlewareHandler = async (c) => {
7170
// necessary for websocket upgrades
7271
if (workspace.type === "worktree") {
7372
return Instance.provide({
74-
directory: workspace.directory,
73+
directory: workspace.directory!,
7574
init: InstanceBootstrap,
7675
async fn() {
7776
return routes().fetch(c.req.raw, c.env)

0 commit comments

Comments
 (0)