Showing the changes to apps/server/src/sourceControl/SourceControlRepositoryService.ts (1 of 42 files). Show all
Unified · Split
| @@ -277,12 +277,10 @@ export const make = Effect.fn("makeSourceControlRepositoryService")(function* () · 276 unmodified lines | ||
| 277 | 277 | }) |
| 278 | 278 | .pipe( |
| 279 | 279 | Effect.map(() => true), |
| 280 | − Effect.catch(() => Effect.succeed(false)), | |
| 280 | + Effect.orElseSucceed(() => false), | |
| 281 | 281 | ); |
| 282 | 282 | if (!hasCommits) { |
| 283 | − const details = yield* git | |
| 284 | − .statusDetails(input.cwd) | |
| 285 | − .pipe(Effect.catch(() => Effect.succeed(null))); | |
| 283 | + const details = yield* git.statusDetails(input.cwd).pipe(Effect.orElseSucceed(() => null)); | |
| 286 | 284 | return { |
| 287 | 285 | repository: toRepositoryInfo(providerKind, urls), |
| 288 | 286 | remoteName, |