From 66e99d722a71d12b81264bc3577b85febe40e49e Mon Sep 17 00:00:00 2001 From: Colin Arnott Date: Tue, 15 Oct 2019 21:24:16 +0000 Subject: 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. --- routers/api/v1/repo/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api') 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 -- cgit v1.2.3