Revert "fix GET /api/v1/repos/{owner}/{repo}/keys/{id}"

This reverts commit 5322136af8.
This commit is contained in:
Loïc Dachary 2023-11-26 06:33:29 +01:00
parent d93f6c153f
commit 8a9676f881
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -155,11 +155,6 @@ func GetDeployKey(ctx *context.APIContext) {
return
}
if key.RepoID != ctx.Repo.Repository.ID {
ctx.Status(http.StatusNotFound)
return
}
if err = key.GetContent(); err != nil {
ctx.Error(http.StatusInternalServerError, "GetContent", err)
return