mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-30 00:33:41 +08:00
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:
@@ -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
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "dbbfb5447feabe3d2f27aa6a8c91106e49b381edb49cc0eafacf56f3d237b667", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "7e76add5e4f509ca666576b0160cee40ea73b6291000620dba6559b0dab99389", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user