mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-28 13:09:18 +08:00
don't ignore error message (#8550)
This commit is contained in:
parent
de4f10be86
commit
c748deef33
@ -136,7 +136,7 @@ func GetEditorconfig(ctx *context.APIContext) {
|
||||
}
|
||||
|
||||
fileName := ctx.Params("filename")
|
||||
def, _ := ec.GetDefinitionForFilename(fileName)
|
||||
def, err := ec.GetDefinitionForFilename(fileName)
|
||||
if def == nil {
|
||||
ctx.NotFound(err)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user