mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Remove trailing whitespace in redact-cast.py
This commit is contained in:
parent
ece21315b1
commit
f3d4c931f5
1 changed files with 3 additions and 3 deletions
|
@ -44,11 +44,11 @@ def main():
|
||||||
|
|
||||||
# Fast initial check on raw line before JSON parsing
|
# Fast initial check on raw line before JSON parsing
|
||||||
raw_line_has_atuin_chars = any(char in line for char in atuin_chars)
|
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
|
# Only parse JSON if we're checking terminal or need to check
|
||||||
if check_terminal or raw_line_has_atuin_chars:
|
if check_terminal or raw_line_has_atuin_chars:
|
||||||
event = json.loads(line)
|
event = json.loads(line)
|
||||||
|
|
||||||
# For output events, check for potential "Atuin" content
|
# For output events, check for potential "Atuin" content
|
||||||
if len(event) >= 3 and event[1] == "o":
|
if len(event) >= 3 and event[1] == "o":
|
||||||
output_text = event[2]
|
output_text = event[2]
|
||||||
|
@ -72,7 +72,7 @@ def main():
|
||||||
check_terminal = False
|
check_terminal = False
|
||||||
else:
|
else:
|
||||||
continue # Skip this event if Atuin is visible
|
continue # Skip this event if Atuin is visible
|
||||||
|
|
||||||
# Write event to output file for non-skipped events
|
# Write event to output file for non-skipped events
|
||||||
fout.write(line)
|
fout.write(line)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue