From c9350aa8bdb9d044cf84ed1bac8b445ac68c50e1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 29 Oct 2025 16:42:08 -0500 Subject: [PATCH] Fix type errors --- src/lib/commands/git/reset.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/git/reset.ts b/src/lib/commands/git/reset.ts index cfab91b9..bad562eb 100644 --- a/src/lib/commands/git/reset.ts +++ b/src/lib/commands/git/reset.ts @@ -206,7 +206,7 @@ export class GitResetCommand implements GitSubcommand { try { currentBranch = await this.git.currentBranch({ dir: this.pwd, - }); + }) || null; } catch { // Detached HEAD state } @@ -262,7 +262,7 @@ export class GitResetCommand implements GitSubcommand { try { currentBranch = await this.git.currentBranch({ dir: this.pwd, - }); + }) || null; } catch { // Detached HEAD state }