From 25eb0a096f0887c1d2516dd4b7c5e51fe340e008 Mon Sep 17 00:00:00 2001 From: lookshe Date: Mon, 1 Feb 2016 14:48:18 +0100 Subject: identify head to use a bit prettier --- ui-shared.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui-shared.c b/ui-shared.c index 8f8ee6c..0c6d748 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1109,11 +1109,7 @@ extern void cgit_author_link(const char *author, const char *head) { char *delim; - if (head) { - delim = repolink(NULL, NULL, "log", head, NULL); - } else { - delim = repolink(NULL, NULL, "log", ctx.qry.head, NULL); - } + delim = repolink(NULL, NULL, "log", head ? head : ctx.qry.head, NULL); html(delim); htmlf("qt=author&q="); html_url_arg(author); -- cgit v1.2.3