From 8eded8bda5881e147c366440447a4a207a36b633 Mon Sep 17 00:00:00 2001 From: Alessandra Lerteri Date: Fri, 7 Aug 2026 10:48:19 +0200 Subject: [PATCH] refactor: replace fp-ts Option with plain conditional in start.ts --- src/start.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/start.ts b/src/start.ts index a35661eff..bccf3ab16 100644 --- a/src/start.ts +++ b/src/start.ts @@ -2,8 +2,6 @@ import child_process from "child_process"; import chalk from "chalk"; import { cli } from "cli-ux"; import figlet from "figlet"; -import { pipe } from "fp-ts/lib/function"; -import * as O from "fp-ts/lib/Option"; import { routes } from "./payloads/response"; import populatePersistence from "./populate-persistence"; import app from "./server"; @@ -28,12 +26,11 @@ app.listen(serverPort, serverHostname, async () => { description: { header: "description", get(row): string { - return pipe( - O.fromNullable(row.description), - // eslint-disable-next-line:no-nested-template-literals - O.map(d => `(${d})`), - O.getOrElse(() => "") - ); + const description = row.description; + if (!description) { + return ""; + } + return `(${description})`; } } });