From 318cc57ffebdc26d305426fa502e4068d74c8f61 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 13 Mar 2025 16:13:55 -0700 Subject: [PATCH] refactor: Simplify terminal feed logic in redact-cast.py --- scripts/redact-cast.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/redact-cast.py b/scripts/redact-cast.py index a3d7b78bc..1b61101d9 100755 --- a/scripts/redact-cast.py +++ b/scripts/redact-cast.py @@ -50,11 +50,9 @@ def main(): # Fast check: if any letters of "Atuin" are in the output if any(char in output_text for char in atuin_chars): - # Only now feed to terminal emulator - stream.feed(output_text) check_terminal = True - elif check_terminal: - # If we're already checking the terminal, continue feeding + + if check_terminal: stream.feed(output_text) # If we need to check the terminal, do so