style(cli): fix formatting for filteredLabel ternary

This commit is contained in:
LehaoLin 2026-03-21 01:05:42 +08:00
parent 71851ff56e
commit 81f3f30dfc

View File

@ -345,9 +345,10 @@ export function registerNodesStatusCommands(nodes: Command) {
const hasFilters = connectedOnly || sinceMs !== undefined;
const livePairedNodes = Array.from(liveNodesById.values()).filter((n) => n.paired);
const totalPairedCount = paired.length > 0 ? paired.length : livePairedNodes.length;
const filteredLabel = hasFilters && filteredPaired.length !== totalPairedCount
? ` (of ${totalPairedCount})`
: "";
const filteredLabel =
hasFilters && filteredPaired.length !== totalPairedCount
? ` (of ${totalPairedCount})`
: "";
defaultRuntime.log(
`Pending: ${pendingRows.length} · Paired: ${filteredPaired.length}${filteredLabel}`,
);