1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00

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

This commit is contained in:
zeripath 2022-07-18 03:16:58 +01:00 committed by GitHub
parent 3f5d72709f
commit c16f0d2a19
No known key found for this signature in database
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)