Skip to content

Commit cb16028

Browse files
authored
golint fixed for routers/repo/branch.go (#206)
1 parent c25063d commit cb16028

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: routers/repo/branch.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import (
1010
)
1111

1212
const (
13-
BRANCH base.TplName = "repo/branch"
13+
tplBranch base.TplName = "repo/branch"
1414
)
1515

16+
// Branches render repository branch page
1617
func Branches(ctx *context.Context) {
1718
ctx.Data["Title"] = "Branches"
1819
ctx.Data["IsRepoToolbarBranches"] = true
@@ -27,5 +28,5 @@ func Branches(ctx *context.Context) {
2728
}
2829

2930
ctx.Data["Branches"] = brs
30-
ctx.HTML(200, BRANCH)
31+
ctx.HTML(200, tplBranch)
3132
}

0 commit comments

Comments
 (0)