don't ignore error message (#8550)

tokarchuk/v1.17
Antoine GIRARD 5 years ago committed by Lunny Xiao
parent de4f10be86
commit c748deef33
  1. 2
      routers/api/v1/repo/file.go

@ -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…
Cancel
Save