From c16f0d2a197ae9e324f9f03914a918c5bed06a25 Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 18 Jul 2022 03:16:58 +0100 Subject: [PATCH] Add missing return for when topic isn't found (#20351) (#20395) --- routers/api/v1/repo/topic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go index 1cc2c50dc..64dc763dc 100644 --- a/routers/api/v1/repo/topic.go +++ b/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)