summary refs log tree commit diff
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2022-01-06 20:22:33 -0600
committerequa <equaa@protonmail.com>2022-01-06 20:22:33 -0600
commit72e07045cba40596e81ee40bb01d5258bb358184 (patch)
treed6b50f52cd7d92fc75bd593d06f2ceaeb218cec0
parentb39585417ac47c6c1612ebb2488f3fd5369f7ef7 (diff)
default-tab: oops default-tab
Signed-off-by: equa <equaa@protonmail.com>
-rw-r--r--ui-shared.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ui-shared.c b/ui-shared.c
index f0ee3ee..17b1e49 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -347,13 +347,7 @@ void cgit_repo_link(const char *name, const char *title, const char *class,
 void cgit_summary_link(const char *name, const char *title, const char *class,
 		       const char *head)
 {
-	if (!strcmp("summary",
-	            ctx.repo
-	            ? ctx.repo->default_tab
-	            : ctx.cfg.default_tab))
-	    reporevlink(NULL, name, title, class, head, NULL, NULL);
-	else
-	    reporevlink("summary", name, title, class, head, NULL, NULL);
+	reporevlink("summary", name, title, class, head, NULL, NULL);
 }
 
 void cgit_tag_link(const char *name, const char *title, const char *class,