Skip to content

Commit

Permalink
Add missing return for when topic isn't found (#20351) (#20395)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored Jul 18, 2022
1 parent 3f5d727 commit c16f0d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/api/v1/repo/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func DeleteTopic(ctx *context.APIContext) {

if topic == nil {
ctx.NotFound()
return
}

ctx.Status(http.StatusNoContent)
Expand Down

0 comments on commit c16f0d2

Please sign in to comment.