From: K Jayatheerth Date: Mon, 23 Feb 2026 13:52:48 +0000 (+0530) Subject: repo: remove unnecessary variable shadow X-Git-Tag: v2.54.0-rc0~102^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a66c8c7f91b13ba56e734fe95ab8ad5e61ad6b45;p=thirdparty%2Fgit.git 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 Acked-by: Justin Tobler Signed-off-by: Junio C Hamano --- diff --git a/builtin/repo.c b/builtin/repo.c 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; }