* Fix TypeScript error in git-errors.ts

* Remove code review documentation
This commit is contained in:
Chris Scott authored and GitHub committed 2026-02-01 11:05:22 -05:00
1 parent 11eddb1de3
commit 059b9a172c
2 files changed
+1 -357

No files matched your search

+1 -1
View File
@@ -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
}