summaryrefslogtreecommitdiff
path: root/server/ci.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/ci.ts')
-rw-r--r--server/ci.ts4
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(