style: Remove trailing whitespace in redact-cast.py

This commit is contained in:
Paul Gauthier (aider) 2025-03-13 16:14:00 -07:00
parent ece21315b1
commit f3d4c931f5

View file

@ -44,11 +44,11 @@ def main():
# Fast initial check on raw line before JSON parsing
raw_line_has_atuin_chars = any(char in line for char in atuin_chars)
# Only parse JSON if we're checking terminal or need to check
if check_terminal or raw_line_has_atuin_chars:
event = json.loads(line)
# For output events, check for potential "Atuin" content
if len(event) >= 3 and event[1] == "o":
output_text = event[2]
@ -72,7 +72,7 @@ def main():
check_terminal = False
else:
continue # Skip this event if Atuin is visible
# Write event to output file for non-skipped events
fout.write(line)
else: