From 88e16ee8acd1011c5ac8c359ec47df1ac999549c Mon Sep 17 00:00:00 2001 From: host Date: Sat, 31 Oct 2026 12:06:07 +0000 Subject: [PATCH] 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. --- cloud/server.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cloud/server.py b/cloud/server.py index 9611807..ef4db71 100644 --- a/cloud/server.py +++ b/cloud/server.py @@ -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):