repo: remove unnecessary variable shadow
Avoid redeclaring `entry` inside the conditional block, removing unnecessary variable shadowing and improving code clarity without changing behavior. Signed-off-by: K Jayatheerth <jayatheerthkulkarni2005@gmail.com> Acked-by: Justin Tobler <jltobler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
K Jayatheerth committed
Feb 23, 2026 at 19:22 UTC
a66c8c7f91b13ba56e734fe95ab8ad5e61ad6b45
1 file changed
-1
builtin/repo.c
-1
index e77e8db563..e952778bbf 100644
--- a/builtin/repo.c
+++ b/builtin/repo.c
@@ -276,7 +276,6 @@ static void stats_table_print_structure(const struct stats_table *table)
const char *value = "";
if (entry) {
- struct stats_table_entry *entry = item->util;
value = entry->value;
}