Skip to content

Commit c748dee

Browse files
sapklunny
authored andcommitted
don't ignore error message (#8550)
1 parent de4f10b commit c748dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func GetEditorconfig(ctx *context.APIContext) {
136136
}
137137

138138
fileName := ctx.Params("filename")
139-
def, _ := ec.GetDefinitionForFilename(fileName)
139+
def, err := ec.GetDefinitionForFilename(fileName)
140140
if def == nil {
141141
ctx.NotFound(err)
142142
return

0 commit comments

Comments
 (0)