Skip to content

Commit a66c8c7

Browse files
jayatheerthkulkarnigitster
authored andcommitted
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>
1 parent bbb2b93 commit a66c8c7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

builtin/repo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ static void stats_table_print_structure(const struct stats_table *table)
276276
const char *value = "";
277277

278278
if (entry) {
279-
struct stats_table_entry *entry = item->util;
280279
value = entry->value;
281280
}
282281

0 commit comments

Comments
 (0)