summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-21 18:03:37 +0800
committerGitHub <noreply@github.com>2016-11-21 18:03:37 +0800
commitf0df8e8dfa370c682df43e3fd856479d82ff4089 (patch)
tree6c39f21f73b69c5ee3f16d85c3a4d1efc4a5cb22 /routers
parent18dc4f1023c4f343ad992d3cedab39a244d4178d (diff)
downloadgitea-f0df8e8dfa370c682df43e3fd856479d82ff4089.tar.gz
gitea-f0df8e8dfa370c682df43e3fd856479d82ff4089.zip
golint fixed for routers/repo/middlewares.go (#204)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/middlewares.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go
index 11b0009dbf..1829e0d491 100644
--- a/routers/repo/middlewares.go
+++ b/routers/repo/middlewares.go
@@ -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")