don't ignore error message (#8550)

release/v1.15
Antoine GIRARD 2019-10-17 02:15:02 +02:00 committed by Lunny Xiao
parent de4f10be86
commit c748deef33
1 changed files with 1 additions and 1 deletions

View File

@ -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