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:
parent
2fde40293c
commit
44e938a00b
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user