From 2e2133d33fecf5500d35986663b081b93fb94231 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Wed, 31 Aug 2022 05:16:33 +0800 Subject: [PATCH] fix: remove redundant if (#20997) --- 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 bd1b8a6295..c6a570b1a6 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) }}