From 377ef088face88d261dd1479aa67fd6fa1d2e039 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Thu, 27 Aug 2026 17:59:16 -0700 Subject: [PATCH] Drop redundant default cases from exhaustive liveness switches All three switches consume ProcessLivenessVerdict/ProcessSignalEvidence values constructed in-process by inspectProcessSignal/inspectProcessLiveness; the union is never deserialized from a wire, RPC, or persisted record, so the defaults are genuinely unreachable. --- src/main/daemon/daemon-host-relocation.ts | 2 -- src/main/daemon/daemon-process-inspection.ts | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/main/daemon/daemon-host-relocation.ts b/src/main/daemon/daemon-host-relocation.ts index edb8de9981b..9ee25b7301b 100644 --- a/src/main/daemon/daemon-host-relocation.ts +++ b/src/main/daemon/daemon-host-relocation.ts @@ -373,8 +373,6 @@ export function pruneOldDaemonHosts(evidence: PinnedDaemonVersionsEvidence): voi continue case 'exited': break - default: - verdict satisfies never } try { rmSync(join(root, entry.name), { recursive: true, force: true }) diff --git a/src/main/daemon/daemon-process-inspection.ts b/src/main/daemon/daemon-process-inspection.ts index c293f98957c..4f40090bfee 100644 --- a/src/main/daemon/daemon-process-inspection.ts +++ b/src/main/daemon/daemon-process-inspection.ts @@ -43,8 +43,6 @@ export function inspectProcessLiveness(pid: number): ProcessLivenessVerdict { return { status: 'exited' } case 'unavailable': return { status: 'unverifiable', reason: 'the daemon process could not be queried' } - default: - return signal satisfies never } } @@ -59,8 +57,6 @@ export function mergeProcessLivenessVerdict( return current?.status === 'live' ? current : next case 'exited': return current ?? next - default: - return next satisfies never } }