Unified · Split
| @@ -326,17 +326,16 @@ export const makeOrchestrationIntegrationHarness = Effect.gen(function* () { · 325 unmodified lines | ||
| 326 | 326 | ); |
| 327 | 327 | const disposeRuntimeExit = yield* Effect.exit(Effect.promise(() => runtime.dispose())); |
| 328 | 328 | |
| 329 | − const failureCause = | |
| 330 | − Exit.isFailure(stopAllExit) | |
| 331 | − ? stopAllExit.cause | |
| 332 | − : Exit.isFailure(closeScopeExit) | |
| 333 | − ? closeScopeExit.cause | |
| 334 | − : Exit.isFailure(disposeRuntimeExit) | |
| 335 | − ? disposeRuntimeExit.cause | |
| 336 | − : null; | |
| 329 | + const failureCause = Exit.isFailure(stopAllExit) | |
| 330 | + ? stopAllExit.cause | |
| 331 | + : Exit.isFailure(closeScopeExit) | |
| 332 | + ? closeScopeExit.cause | |
| 333 | + : Exit.isFailure(disposeRuntimeExit) | |
| 334 | + ? disposeRuntimeExit.cause | |
| 335 | + : null; | |
| 337 | 336 | |
| 338 | 337 | if (failureCause) { |
| 339 | − yield* Effect.failCause(failureCause); | |
| 338 | + return yield* Effect.failCause(failureCause); | |
| 340 | 339 | } |
| 341 | 340 | }); |
| 342 | 341 | |