From 11c3c0626623ae2cda66a779b59f315278b0ee00 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Tue, 30 Aug 2022 16:17:39 +0800 Subject: [PATCH] fix: remove redundant if --- templates/repo/home.tmpl | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index bd1b8a629594..c6a570b1a61c 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -117,19 +117,17 @@
{{template "repo/clone_buttons" .}} {{template "repo/clone_script" .}} - {{if not .DisableDownloadSourceArchives}} - - {{end}} +
{{end}} {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame) }}