Make curve target narrowing explicit for static analysis

Redundant None check preserves at-cap semantics: selected already requires a target.21 runtime tests pass; broader curve suite90pass with one cloud AF_UNIX status test block.540 expression-equivalence checks, project ty, Ruff and static device artifact validation pass. No native changes; canonical inventory refreshed.
This commit is contained in:
Dom
2026-11-17 05:55:54 -06:00
parent d3663a46f0
commit 36b211de7b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ class Runtime:
target = self.pending_target
selected = applied and self.pending_cap and target is not None
at_cap = bool(selected and self.pending_ego >= target - ACTIVE_OFF_DELTA)
self.was_controlling = at_cap and target < self.pending_cruise - 1.0
self.was_controlling = at_cap and target is not None and target < self.pending_cruise - 1.0
outbid = self.pending_cap and not selected
released = not self.pending_cap and target is not None and target > self.pending_cruise - ACTIVE_OFF_DELTA
if target is None:
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "dbbfb5447feabe3d2f27aa6a8c91106e49b381edb49cc0eafacf56f3d237b667", "schema_version": 1}
{"protected_inventory_sha256": "7e76add5e4f509ca666576b0160cee40ea73b6291000620dba6559b0dab99389", "schema_version": 1}