fix(server): remove unreachable duplicate lines in _latest_ts
Delete the second vals/return pair after the first return (was lines 718-719); behaviour unchanged: max of numeric values, else None.
This commit is contained in:
1 parent
45be478d70
commit
88e16ee8ac
1 file changed
-2
@@ -769,8 +769,6 @@ def _read_agent_entries_multi(paths):
|
||||
def _latest_ts(values):
|
||||
vals = [v for v in values if isinstance(v, (int, float))]
|
||||
return max(vals) if vals else None
|
||||
vals = [v for v in values if isinstance(v, (int, float))]
|
||||
return max(vals) if vals else None
|
||||
|
||||
|
||||
def _agent_status_from_task(status):
|
||||
|
||||
Reference in new issue
Block a user