mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01: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:
parent
9cd1f38f70
commit
07ec8288bf
1 changed files with 1 additions and 0 deletions
|
@ -240,6 +240,7 @@ func DeleteTopic(ctx *context.APIContext) {
|
|||
|
||||
if topic == nil {
|
||||
ctx.NotFound()
|
||||
return
|
||||
}
|
||||
|
||||
ctx.Status(http.StatusNoContent)
|
||||
|
|
Loading…
Reference in a new issue