summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorColin Arnott <carnott@snapchat.com>2019-10-15 21:24:16 +0000
committerzeripath <art27@cantab.net>2019-10-15 22:24:16 +0100
commit66e99d722a71d12b81264bc3577b85febe40e49e (patch)
tree99e4906ab068e35b393dbf7b941405127fd283fe /routers/api
parent80655026d2cc8e56223be546a5ed46634eafa059 (diff)
downloadgitea-66e99d722a71d12b81264bc3577b85febe40e49e.tar.gz
gitea-66e99d722a71d12b81264bc3577b85febe40e49e.zip
upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)
editorconfig-core-go made breaking api changes and has recently released v2.1.1. This change consumes the new api and fixes up any breaking references.
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index ae20e1e96b..f213737d54 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, _ := ec.GetDefinitionForFilename(fileName)
if def == nil {
ctx.NotFound(err)
return