From d974c139b4a87a86254b3e4660b131152923f083 Mon Sep 17 00:00:00 2001 From: 6543 <24977596+6543@users.noreply.github.com> Date: Tue, 30 Jul 2019 17:02:58 +0200 Subject: [PATCH] sugestion to use range .Branches (#7674) https://github.com/go-gitea/gitea/pull/7668/files/d57973a8041a741fdb7e77bc6ab18431bbf95ba4 --- templates/repo/branch/list.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 7ddd6f1f7f..370e323960 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -13,7 +13,7 @@ - {{range $branch := .Branches}} + {{range .Branches}} {{if eq .Name $.DefaultBranch}} {{if .IsProtected}} @@ -44,7 +44,7 @@
- {{range $branch := .Branches}} + {{range .Branches}} {{if ne .Name $.DefaultBranch}}