From 00f33428b1f39c05ca0e5c10bf7eb06685b58fb1 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 2 May 2026 21:34:37 +0000 Subject: [PATCH] Remove dead 'sapling' branch in resolveVcsTerms The VcsDriverKind type is 'git' | 'jj' | 'unknown', so the kind === 'sapling' comparison could never be true at runtime. Remove this unreachable dead code. --- apps/web/src/vcsPresentation.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/web/src/vcsPresentation.ts b/apps/web/src/vcsPresentation.ts index e9d5b7d2b7..7599d4a78e 100644 --- a/apps/web/src/vcsPresentation.ts +++ b/apps/web/src/vcsPresentation.ts @@ -40,13 +40,6 @@ export function resolveVcsTerms(kind: VcsDriverKind | null | undefined): VcsTerm }; } - if (kind === "sapling") { - return { - ...gitLikeTerms, - systemName: "Sapling", - }; - } - if (kind === "git") { return gitLikeTerms; }