From d67eda24d2d7dbc0a2a080e2f2a6dd3d2304e6c4 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 4 Jan 2025 12:09:53 -0800 Subject: [PATCH] style: Remove trailing whitespace and format confirm_ask prompt --- aider/commands.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 73e13d511..34b3881bb 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -921,13 +921,11 @@ class Commands: # Calculate token count of output token_count = self.coder.main_model.token_count(combined_output) k_tokens = token_count / 1000 - + if add_on_nonzero_exit: add = exit_status != 0 else: - add = self.io.confirm_ask( - f"Add {k_tokens:.1f}k tokens of command output to the chat?" - ) + add = self.io.confirm_ask(f"Add {k_tokens:.1f}k tokens of command output to the chat?") if add: num_lines = len(combined_output.strip().splitlines())