From d8c6bd99fa9ed2ac499ebce885e0e54a50181bef Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 10 Apr 2026 06:51:35 -0500 Subject: [PATCH] fix(gsd): use debugLog in catch block to satisfy empty-catch lint The compiled JS strips comments, so the catch body needs real code. --- src/resources/extensions/gsd/auto-worktree.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/extensions/gsd/auto-worktree.ts b/src/resources/extensions/gsd/auto-worktree.ts index c4aefe621..1ccac09e7 100644 --- a/src/resources/extensions/gsd/auto-worktree.ts +++ b/src/resources/extensions/gsd/auto-worktree.ts @@ -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;