fix(gsd): replace empty catch block with descriptive comment
CI lint rule forbids empty catch blocks in migrated files.
This commit is contained in:
parent
7240b284dd
commit
475bf6cd84
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue