From 1ffd9ed18a6114c9cf12a0d1b064b81b03676597 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:36:04 -0700 Subject: Return nothing from the ref row printers --- source/ui-refs.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'source/ui-refs.c') diff --git a/source/ui-refs.c b/source/ui-refs.c index da5e726..bd4cacf 100644 --- a/source/ui-refs.c +++ b/source/ui-refs.c @@ -97,13 +97,13 @@ static void print_branch_header(int columns) htmlf("Age\n", age_colspan(columns)); } -static int print_branch(struct refinfo *ref, int columns) +static void print_branch(struct refinfo *ref, int columns) { struct commitinfo *info = ref->commit; const char *name = ref->refname; if (!info) - return 1; + return; html(""); cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0, NULL, NULL, ctx.qry.showmsg, 0); html(""); @@ -126,7 +126,6 @@ static int print_branch(struct refinfo *ref, int columns) htmlf("", age_colspan(columns)); } html("\n"); - return 0; } static void collect_tags(struct reflist *list) @@ -147,7 +146,7 @@ static void print_tag_header(int columns) htmlf("Age\n", age_colspan(columns)); } -static int print_tag(struct refinfo *ref, int columns) +static void print_tag(struct refinfo *ref, int columns) { struct taginfo *info = NULL; const char *name = ref->refname; @@ -161,7 +160,7 @@ static int print_tag(struct refinfo *ref, int columns) obj = tag->tagged; info = ref->tag; if (!info) - return 1; + return; } html(""); @@ -194,8 +193,6 @@ static int print_tag(struct refinfo *ref, int columns) cgit_print_age(ref->commit->commit->date, 0, -1); } html("\n"); - - return 0; } static void print_refs_link(const char *path, int columns) -- cgit