diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-21 18:03:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-21 18:03:37 +0800 |
commit | f0df8e8dfa370c682df43e3fd856479d82ff4089 (patch) | |
tree | 6c39f21f73b69c5ee3f16d85c3a4d1efc4a5cb22 /routers | |
parent | 18dc4f1023c4f343ad992d3cedab39a244d4178d (diff) | |
download | gitea-f0df8e8dfa370c682df43e3fd856479d82ff4089.tar.gz gitea-f0df8e8dfa370c682df43e3fd856479d82ff4089.zip |
golint fixed for routers/repo/middlewares.go (#204)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/middlewares.go | 2 |
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") |