diff options
author | Colin Arnott <carnott@snapchat.com> | 2019-10-15 21:24:16 +0000 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-15 22:24:16 +0100 |
commit | 66e99d722a71d12b81264bc3577b85febe40e49e (patch) | |
tree | 99e4906ab068e35b393dbf7b941405127fd283fe /routers/api | |
parent | 80655026d2cc8e56223be546a5ed46634eafa059 (diff) | |
download | gitea-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.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 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 |