diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-10-17 02:15:02 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-17 08:15:02 +0800 |
commit | c748deef33df6169c5ec3490a4ccd0b58aad5da0 (patch) | |
tree | 194cb47ae388d80320159f63b6c34eb723536a0c /routers | |
parent | de4f10be86b207b087ba9781c628fe3d7b059f7b (diff) | |
download | gitea-c748deef33df6169c5ec3490a4ccd0b58aad5da0.tar.gz gitea-c748deef33df6169c5ec3490a4ccd0b58aad5da0.zip |
don't ignore error message (#8550)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index f213737d54..f1a61bb0be 100644 --- a/routers/api/v1/repo/file.go +++ b/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 |