diff options
author | Elizabeth <me@liz.coffee> | 2025-06-02 16:52:52 -0700 |
---|---|---|
committer | Elizabeth <me@liz.coffee> | 2025-06-02 16:52:52 -0700 |
commit | 98f5c21aa65bbbca01a186a754249335b4afef57 (patch) | |
tree | 0fc8e01a73f0a3be4534c11724ad2ff634b4fd2f /server/ci.ts | |
parent | 373d9ec700c0097a22cf665a8e33cf48998d1dc2 (diff) | |
download | ci-98f5c21aa65bbbca01a186a754249335b4afef57.tar.gz ci-98f5c21aa65bbbca01a186a754249335b4afef57.zip |
fixup the Either monad a bit for type safetyp
Diffstat (limited to 'server/ci.ts')
-rw-r--r-- | server/ci.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/ci.ts b/server/ci.ts index e1a9ca7..f8d4a17 100644 --- a/server/ci.ts +++ b/server/ci.ts @@ -23,8 +23,8 @@ export class CiHookServer { constructor( healthCheck: HealthChecker = _healthCheck, jobQueuer: IJobQueuer<ITraceable<Job, ServerTrace>> = new LaminarJobQueuer( - getRequiredEnv("LAMINAR_URL").fold((err, val) => - err ? "https://ci.liz.coffee" : val!, + getRequiredEnv("LAMINAR_URL").fold(({ isLeft, value }) => + isLeft ? "https://ci.liz.coffee" : value, ), ), private readonly healthCheckActivity: IHealthCheckActivity = new HealthCheckActivityImpl( |