From 0905e8f4b14f9af9e71c3285c986e00395007806 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 30 Jul 2019 12:11:17 +0200 Subject: [PATCH] sugestion to use range .Branches 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 7ddd6f1f7f9bc..370e323960417 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}}