From c6d369742a7598bb837dc9e47ffd4cb62d3a23f5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 8 May 2023 22:57:20 -0700 Subject: [PATCH] Remove unused local variable 'new_files_str' from coder.py. # Context: USER: coder.py:99:13: F841 local variable 'new_files_str' is assigned to but never used ASSISTANT: I will remove the unused local variable 'new_files_str' from the file. ```python coder.py <<<<<<< ORIGINAL new_files_str = "\n ".join(new_files) self.console.print(f"[red bold]\nFiles not tracked in {repo.git_dir}:") for fn in new_files: self.console.print(f"[red bold] {fn}") ======= self.console.print(f"[red bold]Files not tracked in {repo.git_dir}:") for fn in new_files: self.console.print(f"[red bold] {fn}") >>>>>>> UPDATED ``` --- coder.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coder.py b/coder.py index 5ac1ff0d5..e2e2ab156 100755 --- a/coder.py +++ b/coder.py @@ -94,11 +94,9 @@ class Coder: new_files.append(relative_fname) if new_files: - new_files_str = "\n ".join(new_files) - self.console.print(f"[red bold]\nFiles not tracked in {repo.git_dir}:") + self.console.print(f"[red bold]Files not tracked in {repo.git_dir}:") for fn in new_files: - self.console.print(f"[red bold] {fn}") - + self.console.print(f"[red bold] {fn}") if Confirm.ask("[bold red]Add them?", console=self.console): for relative_fname in new_files: repo.git.add(relative_fname)