style: biome formatting

This commit is contained in:
Peter Steinberger
2025-12-21 13:58:27 +00:00
parent b56d4b90ce
commit 4f3a3e93a9
3 changed files with 10 additions and 15 deletions

View File

@@ -17,8 +17,7 @@ let state: BrowserServerState | null = null;
const log = createSubsystemLogger("browser");
const logServer = log.child("server");
export async function startBrowserControlServerFromConfig(
): Promise<BrowserServerState | null> {
export async function startBrowserControlServerFromConfig(): Promise<BrowserServerState | null> {
if (state) return state;
const cfg = loadConfig();
@@ -70,8 +69,7 @@ export async function startBrowserControlServerFromConfig(
return state;
}
export async function stopBrowserControlServer(
): Promise<void> {
export async function stopBrowserControlServer(): Promise<void> {
const current = state;
if (!current) return;

View File

@@ -175,9 +175,7 @@ export function registerGatewayCli(program: Command) {
process.removeListener("SIGINT", onSigint);
if (shuttingDown) {
gatewayLog.info(
`received ${signal} during shutdown; exiting now`,
);
gatewayLog.info(`received ${signal} during shutdown; exiting now`);
defaultRuntime.exit(0);
}
shuttingDown = true;
@@ -414,9 +412,7 @@ export function registerGatewayCli(program: Command) {
process.removeListener("SIGINT", onSigint);
if (shuttingDown) {
gatewayLog.info(
`received ${signal} during shutdown; exiting now`,
);
gatewayLog.info(`received ${signal} during shutdown; exiting now`);
defaultRuntime.exit(0);
}
shuttingDown = true;

View File

@@ -569,7 +569,8 @@ function formatForLog(value: unknown): string {
if (value.name) parts.push(value.name);
if (value.message) parts.push(value.message);
const code =
"code" in value && (typeof value.code === "string" || typeof value.code === "number")
"code" in value &&
(typeof value.code === "string" || typeof value.code === "number")
? String(value.code)
: "";
if (code) parts.push(`code=${code}`);
@@ -1480,7 +1481,9 @@ export async function startGatewayServer(
running: false,
lastError: "not configured",
};
logTelegram.info("skipping provider start (no TELEGRAM_BOT_TOKEN/config)");
logTelegram.info(
"skipping provider start (no TELEGRAM_BOT_TOKEN/config)",
);
return;
}
logTelegram.info("starting provider");
@@ -2589,9 +2592,7 @@ export async function startGatewayServer(
`wide-area DNS-SD ${result.changed ? "updated" : "unchanged"} (${WIDE_AREA_DISCOVERY_DOMAIN}${result.zonePath})`,
);
} catch (err) {
logDiscovery.warn(
`wide-area discovery update failed: ${String(err)}`,
);
logDiscovery.warn(`wide-area discovery update failed: ${String(err)}`);
}
}
}