(value: string)
| 269 | }; |
| 270 | } |
| 271 | |
| 272 | function isUniqueConstraintError(error: unknown): boolean { |
| 273 | return typeof error === 'object' |
| 274 | && error !== null |
| 275 | && 'code' in error |
| 276 | && (error as { code?: string }).code === 'P2002'; |
| 277 | } |
| 278 | |
| 279 | function branchFromOptions(workspaceId: string, options: NormalizedCreateWorkspaceOptions): string { |
| 280 | if (options.branchName) { |
| 281 | return options.branchName; |
| 282 | } |
no outgoing calls
no test coverage detected