style(cli): fix formatting for filteredLabel ternary

This commit is contained in:
Yaohua-Leo 2026-03-20 20:26:17 +08:00
parent e5d1ae72e6
commit b5a9b99299

View File

@ -345,8 +345,9 @@ 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}`,
);