aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c6
1 files changed, 1 insertions, 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);