Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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})`;
}
}
});
Expand Down
Loading