forked from forgejo/forgejo
Refactor editorconfig middleware
This commit is contained in:
parent
91b589f2f0
commit
bd898a10f8
5 changed files with 8 additions and 27 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue