Skip to content

Commit

Permalink
sugestion to use range .Branches (#7674)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored and lunny committed Jul 30, 2019
1 parent e7d4895 commit d974c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/repo/branch/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<tbody>
<tr>
<td>
{{range $branch := .Branches}}
{{range .Branches}}
{{if eq .Name $.DefaultBranch}}
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
Expand Down Expand Up @@ -44,7 +44,7 @@
<div class="ui attached table segment">
<table class="ui very basic striped fixed table single line">
<tbody>
{{range $branch := .Branches}}
{{range .Branches}}
{{if ne .Name $.DefaultBranch}}
<tr>
<td class="six wide">
Expand Down

0 comments on commit d974c13

Please sign in to comment.