fix(gsd): replace empty catch block with descriptive comment

CI lint rule forbids empty catch blocks in migrated files.
This commit is contained in:
Jeremy 2026-04-10 06:44:18 -05:00
parent 7240b284dd
commit 475bf6cd84

View file

@ -2011,7 +2011,11 @@ export function mergeMilestoneToMain(
// capture unrelated files from other milestones.
if (existsSync(worktreeCwd)) {
let preTeardownBranch: string | null = null;
try { preTeardownBranch = nativeGetCurrentBranch(worktreeCwd); } catch { /* */ }
try {
preTeardownBranch = nativeGetCurrentBranch(worktreeCwd);
} catch {
// Branch detection failure is non-fatal — skip the auto-commit to be safe
}
const isOnMilestoneBranch = preTeardownBranch === milestoneBranch;
if (isOnMilestoneBranch) {