refactor: remove unreachable code after while true (#842)
What changed, and why it matters
This commit removes a single line of Python code that could never run. The removed line sat immediately after a `while True:` loop that only exits by returning from the function, so execution could never reach it. It is a harmless cleanup with no security effect.
No action required. This is a safe refactoring change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
In src/krux/pages/encryption_ui.py, the function decrypt_kef contains a while True: loop whose only exit paths are return statements. The line raise ValueError(err) following the loop was therefore unreachable dead code. The patch deletes that unreachable line. There is no functional, cryptographic, or security change.
Changed components
src/krux/pages/encryption_ui.pyInspect captured patch +0 / −1
diff --git a/src/krux/pages/encryption_ui.py b/src/krux/pages/encryption_ui.py
index dd13cb8..76a1efe 100644
--- a/src/krux/pages/encryption_ui.py
+++ b/src/krux/pages/encryption_ui.py
@@ -114,7 +114,6 @@ def decrypt_kef(ctx, data):
kef_envelope = KEFEnvelope(ctx)
if not kef_envelope.parse(data):
return data
- raise ValueError(err)
def prompt_for_text_update(
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.