fix(gsd): use debugLog in catch block to satisfy empty-catch lint

The compiled JS strips comments, so the catch body needs real code.
This commit is contained in:
Jeremy 2026-04-10 06:51:35 -05:00
parent 475bf6cd84
commit d8c6bd99fa

View file

@ -2013,8 +2013,8 @@ export function mergeMilestoneToMain(
let preTeardownBranch: string | null = null;
try {
preTeardownBranch = nativeGetCurrentBranch(worktreeCwd);
} catch {
// Branch detection failure is non-fatal — skip the auto-commit to be safe
} catch (err) {
debugLog("mergeMilestoneToMain", { phase: "pre-teardown-branch-detect-failed", error: String(err) });
}
const isOnMilestoneBranch = preTeardownBranch === milestoneBranch;