style: format

This commit is contained in:
Peter Steinberger
2026-01-09 00:31:24 +01:00
parent 71309c064a
commit 4e92ccc0dd
13 changed files with 66 additions and 50 deletions

View File

@@ -79,11 +79,13 @@ export function formatGatewayProvidersStatusLines(
bits.push(account.connected ? "connected" : "disconnected");
}
const inboundAt =
typeof account.lastInboundAt === "number" && Number.isFinite(account.lastInboundAt)
typeof account.lastInboundAt === "number" &&
Number.isFinite(account.lastInboundAt)
? account.lastInboundAt
: null;
const outboundAt =
typeof account.lastOutboundAt === "number" && Number.isFinite(account.lastOutboundAt)
typeof account.lastOutboundAt === "number" &&
Number.isFinite(account.lastOutboundAt)
? account.lastOutboundAt
: null;
if (inboundAt) bits.push(`in:${formatAge(Date.now() - inboundAt)}`);