mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
chore (#103)
* Fix TypeScript error in git-errors.ts * Remove code review documentation
This commit is contained in:
1 parent
11eddb1de3
commit
059b9a172c
2 files changed
+1
-357
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user