From 818b34e3c09ea0567ad112aaa84b7739d4978a49 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Sat, 21 Dec 2024 23:38:54 +0100 Subject: [PATCH] Fix formatting --- sphinx_js/js/cli.ts | 4 +++- sphinx_js/js/main.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sphinx_js/js/cli.ts b/sphinx_js/js/cli.ts index fc32728f..aa8197f9 100644 --- a/sphinx_js/js/cli.ts +++ b/sphinx_js/js/cli.ts @@ -54,7 +54,9 @@ async function loadConfig( return configModule.config; } -export async function run(args: string[]): Promise<[Application, TopLevelIR[]]> { +export async function run( + args: string[], +): Promise<[Application, TopLevelIR[]]> { // Most of this stuff is copied from typedoc/src/lib/cli.ts let app = await bootstrapAppTypedoc0_25(args); if (app.options.getValue("version")) { diff --git a/sphinx_js/js/main.ts b/sphinx_js/js/main.ts index 0b3c7534..d33b6c0c 100644 --- a/sphinx_js/js/main.ts +++ b/sphinx_js/js/main.ts @@ -7,7 +7,7 @@ async function main() { let app, result; try { [app, result] = await run(args); - } catch(e) { + } catch (e) { if (e instanceof ExitError) { return e.code; }