summaryrefslogtreecommitdiffstats
path: root/routers/repo/middlewares.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-11-05 13:58:53 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-11-05 15:44:14 -0200
commitbd898a10f888005be990ebea2e6a845d09ef55f3 (patch)
tree784e84c939367a64b5bd5a7322a801dd83108642 /routers/repo/middlewares.go
parent91b589f2f0fb93f9f9882426c43c363276d2235a (diff)
downloadgitea-bd898a10f888005be990ebea2e6a845d09ef55f3.tar.gz
gitea-bd898a10f888005be990ebea2e6a845d09ef55f3.zip
Refactor editorconfig middleware
Diffstat (limited to 'routers/repo/middlewares.go')
-rw-r--r--routers/repo/middlewares.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go
index f025765cb9..7e1f95d417 100644
--- a/routers/repo/middlewares.go
+++ b/routers/repo/middlewares.go
@@ -8,7 +8,7 @@ import (
"github.com/gogits/git-module"
)
-func setEditorconfigIfExists(ctx *context.Context) {
+func SetEditorconfigIfExists(ctx *context.Context) {
ec, err := ctx.Repo.GetEditorconfig()
if err != nil && !git.IsErrNotExist(err) {