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

This commit is contained in:
zeripath authored and GitHub committed 2022-07-18 10:16:58 +08:00
1 parent 3f5d72709f
commit c16f0d2a19
1 file changed
+1
+1
View File
@@ -240,6 +240,7 @@ func DeleteTopic(ctx *context.APIContext) {
if topic == nil {
ctx.NotFound()
return
}
ctx.Status(http.StatusNoContent)