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

Add missing return to DeleteTopic API when the topic is not found.
tokarchuk/v1.18
Gusted 2 years ago committed by GitHub
parent 9cd1f38f70
commit 07ec8288bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/api/v1/repo/topic.go

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

Loading…
Cancel
Save