fix(hermes): This is a localized two-line replacement. It returns exactly when all three values are None, as before, while removing boolean-chain cognitive complexity. (incident sonar/atlasbot/python:S3776/AZ2y3T38Ky9i4pkIpSiX)

This commit is contained in:
Hermes Agent 2026-08-08 04:17:45 +00:00
parent 2fde40293c
commit 44e938a00b

View File

@ -255,7 +255,7 @@ def _spine_from_counts(summary: dict[str, Any]) -> dict[str, str]:
not_ready = len(inventory.get("not_ready_names") or [])
workers_ready = workers.get("ready")
workers_total = workers.get("total")
if total is None and ready is None and not_ready is None:
if all(value is None for value in (total, ready, not_ready)):
return {}
parts = []
if total is not None: