Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix TypeScript error in git-errors.ts
  • Loading branch information
chriswritescode-dev committed Feb 1, 2026
commit e2418151fee09038a12ff4cbb6483b5eaf0579de
2 changes: 1 addition & 1 deletion backend/src/utils/git-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export function isNoUpstreamError(error: Error): boolean {

export function parseBranchNameFromError(error: Error): string | null {
const match = error.message.match(/The current branch (.+) has no upstream branch/i)
return match ? match[1].trim() : null
return match?.[1]?.trim() ?? null
}