Skip to content

Commit f0df8e8

Browse files
authored
golint fixed for routers/repo/middlewares.go (#204)
1 parent 18dc4f1 commit f0df8e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/repo/middlewares.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"code.gitea.io/gitea/modules/context"
99
)
1010

11+
// SetEditorconfigIfExists set editor config as render variable
1112
func SetEditorconfigIfExists(ctx *context.Context) {
1213
ec, err := ctx.Repo.GetEditorconfig()
1314

@@ -22,6 +23,7 @@ func SetEditorconfigIfExists(ctx *context.Context) {
2223
ctx.Data["Editorconfig"] = ec
2324
}
2425

26+
// SetDiffViewStyle set diff style as render variable
2527
func SetDiffViewStyle(ctx *context.Context) {
2628
queryStyle := ctx.Query("style")
2729

0 commit comments

Comments
 (0)