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

tokarchuk/v1.17
zeripath 2 years ago committed by GitHub
parent 3f5d72709f
commit c16f0d2a19
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 { if topic == nil {
ctx.NotFound() ctx.NotFound()
return
} }
ctx.Status(http.StatusNoContent) ctx.Status(http.StatusNoContent)

Loading…
Cancel
Save