Skip to content

Commit

Permalink
don't ignore error message (#8550)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk authored and lunny committed Oct 17, 2019
1 parent de4f10b commit c748dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c748dee

Please sign in to comment.