aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2016-02-01 14:48:18 +0100
committerlookshe <github@lookshe.org>2016-02-01 14:48:18 +0100
commit25eb0a096f0887c1d2516dd4b7c5e51fe340e008 (patch)
tree14ffec8e8c8042094be731f41750f075251a0bbf
parent95be399ab4692a77a818eb2d72e6b4b2e3d821ec (diff)
identify head to use a bit prettier
-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&amp;q=");
html_url_arg(author);