1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-23 21:46:10 +02:00

Add missing return for when topic isn't found (#20351)

Add missing return to DeleteTopic API when the topic is not found.
This commit is contained in:
Gusted 2022-07-13 17:39:19 +00:00 committed by GitHub
parent 9cd1f38f70
commit 07ec8288bf
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,6 +240,7 @@ func DeleteTopic(ctx *context.APIContext) {
if topic == nil {
ctx.NotFound()
return
}
ctx.Status(http.StatusNoContent)