Browse Source

golint fixed for routers/repo/middlewares.go (#204)

tags/v1.2.0-rc1
Lunny Xiao GitHub 9 years ago
parent
commit
d239ceee22
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/middlewares.go

+ 2
- 0
routers/repo/middlewares.go View File

@@ -8,6 +8,7 @@ import (
"code.gitea.io/gitea/modules/context"
)

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

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

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



Loading…
Cancel
Save