From c36d8a692e350c37bc3b07fe78cc3e960a0b5921 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 23:10:39 -0700 Subject: [PATCH] refactor(state): drop redundant isinstance guard in _lock_holder_provably_dead (except path already fails closed) --- hermes_state_common.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hermes_state_common.py b/hermes_state_common.py index 8470f27d3b..376a79512f 100644 --- a/hermes_state_common.py +++ b/hermes_state_common.py @@ -743,8 +743,6 @@ def _clear_lock_holder_record(handle) -> None: def _lock_holder_provably_dead(record) -> bool: """True ONLY when the recorded holder is provably dead or PID-recycled. Anything indeterminate (no/malformed record, PID owned by another user, /proc unavailable) is False: FAIL CLOSED and defer.""" - if not isinstance(record, dict): - return False try: pid = int(record["pid"]) except (KeyError, TypeError, ValueError):