0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 07:42:47 +01:00

don't ignore error message (#8550)

This commit is contained in:
Antoine GIRARD 2019-10-17 02:15:02 +02:00 committed by Lunny Xiao
parent de4f10be86
commit c748deef33

View file

@ -136,7 +136,7 @@ func GetEditorconfig(ctx *context.APIContext) {
} }
fileName := ctx.Params("filename") fileName := ctx.Params("filename")
def, _ := ec.GetDefinitionForFilename(fileName) def, err := ec.GetDefinitionForFilename(fileName)
if def == nil { if def == nil {
ctx.NotFound(err) ctx.NotFound(err)
return return