Skip to content

Commit dc3944a

Browse files
committed
Simplify redundant ternary in worktreePath assignment
1 parent 58e0ed7 commit dc3944a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apps/web/src/components/ChatView.browser.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -683,12 +683,7 @@ function resolveWsRpc(body: NormalizedWsRpcRequestBody): unknown {
683683
threadId: typeof body.threadId === "string" ? body.threadId : THREAD_ID,
684684
terminalId: typeof body.terminalId === "string" ? body.terminalId : "default",
685685
cwd: typeof body.cwd === "string" ? body.cwd : "/repo/project",
686-
worktreePath:
687-
typeof body.worktreePath === "string"
688-
? body.worktreePath
689-
: body.worktreePath === null
690-
? null
691-
: null,
686+
worktreePath: typeof body.worktreePath === "string" ? body.worktreePath : null,
692687
status: "running",
693688
pid: 123,
694689
history: "",

0 commit comments

Comments
 (0)