From ae5d1dae7ef7dba9a5773e9305d67e3ba322100f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 24 May 2024 08:40:01 -0700 Subject: [PATCH] Removed unnecessary variables and function call in the process function. --- scripts/blame.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/blame.py b/scripts/blame.py index 195299ea5..27386da86 100755 --- a/scripts/blame.py +++ b/scripts/blame.py @@ -56,9 +56,6 @@ def get_aider_commits(): def process(fnames): aider_commits = get_aider_commits() - total_lines = 0 - total_aider_lines = 0 - for fname in fnames: num_lines, num_aider_lines = get_lines_with_commit_hash(fname, aider_commits) total_lines += num_lines @@ -66,7 +63,6 @@ def process(fnames): print(f"{fname}: {num_aider_lines}/{num_lines} lines modified by aider") print(f"Total: {total_aider_lines}/{total_lines} lines modified by aider") - get_lines_with_commit_hash(fname, aider_commits) def main(): if len(sys.argv) < 2: