Skip to content

Commit c16f0d2

Browse files
authored
Add missing return for when topic isn't found (#20351) (#20395)
1 parent 3f5d727 commit c16f0d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: routers/api/v1/repo/topic.go

+1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ func DeleteTopic(ctx *context.APIContext) {
240240

241241
if topic == nil {
242242
ctx.NotFound()
243+
return
243244
}
244245

245246
ctx.Status(http.StatusNoContent)

0 commit comments

Comments
 (0)