Subject: [PATCH 3/5] repo: remove unnecessary variable shadow

From: "K Jayatheerth via GitGitGadget" <[email-masked]>
Date: Tue, 10 Mar 2026 08:51:16 +0000

From: K Jayatheerth <[email-masked]>

Avoid redeclaring `entry` inside the conditional block, removing
unnecessary variable shadowing and improving code clarity without
changing behavior.

Signed-off-by: K Jayatheerth <[email-masked]>
Acked-by: Justin Tobler <[email-masked]>
Signed-off-by: Junio C Hamano <[email-masked]>
---
 builtin/repo.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/builtin/repo.c b/builtin/repo.c
index f943be7451..fae1141cff 100644
--- a/builtin/repo.c
+++ b/builtin/repo.c
@@ -445,7 +445,6 @@ static void stats_table_print_structure(const struct stats_table *table)
 		const char *unit = "";
 
 		if (entry) {
-			struct stats_table_entry *entry = item->util;
 			value = entry->value;
 			if (entry->unit)
 				unit = entry->unit;
-- 
gitgitgadget