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.
This commit is contained in:
1 file changed
-7
@@ -40,13 +40,6 @@ export function resolveVcsTerms(kind: VcsDriverKind | null | undefined): VcsTerm
|
||||
};
|
||||
}
|
||||
|
||||
if (kind === "sapling") {
|
||||
return {
|
||||
...gitLikeTerms,
|
||||
systemName: "Sapling",
|
||||
};
|
||||
}
|
||||
|
||||
if (kind === "git") {
|
||||
return gitLikeTerms;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user