From 98f5c21aa65bbbca01a186a754249335b4afef57 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Mon, 2 Jun 2025 16:52:52 -0700 Subject: fixup the Either monad a bit for type safetyp --- server/ci.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/ci.ts') 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> = 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( -- cgit v1.2.3-70-g09d2