From f0df8e8dfa370c682df43e3fd856479d82ff4089 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 21 Nov 2016 18:03:37 +0800 Subject: [PATCH] golint fixed for routers/repo/middlewares.go (#204) --- routers/repo/middlewares.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go index 11b0009db..1829e0d49 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")