mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-29 08:17:31 -04:00
golint fixed for routers/repo/middlewares.go (#204)
This commit is contained in:
parent
18dc4f1023
commit
f0df8e8dfa
@ -8,6 +8,7 @@ import (
|
|||||||
"code.gitea.io/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// SetEditorconfigIfExists set editor config as render variable
|
||||||
func SetEditorconfigIfExists(ctx *context.Context) {
|
func SetEditorconfigIfExists(ctx *context.Context) {
|
||||||
ec, err := ctx.Repo.GetEditorconfig()
|
ec, err := ctx.Repo.GetEditorconfig()
|
||||||
|
|
||||||
@ -22,6 +23,7 @@ func SetEditorconfigIfExists(ctx *context.Context) {
|
|||||||
ctx.Data["Editorconfig"] = ec
|
ctx.Data["Editorconfig"] = ec
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetDiffViewStyle set diff style as render variable
|
||||||
func SetDiffViewStyle(ctx *context.Context) {
|
func SetDiffViewStyle(ctx *context.Context) {
|
||||||
queryStyle := ctx.Query("style")
|
queryStyle := ctx.Query("style")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user