diff options
author | zeripath <art27@cantab.net> | 2022-07-18 03:16:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 10:16:58 +0800 |
commit | c16f0d2a197ae9e324f9f03914a918c5bed06a25 (patch) | |
tree | 11bab54b545f66a544d46610b5ba867e79d55e83 /routers/api | |
parent | 3f5d72709f46472655e871a8a7e51741c71e84ec (diff) | |
download | gitea-c16f0d2a197ae9e324f9f03914a918c5bed06a25.tar.gz gitea-c16f0d2a197ae9e324f9f03914a918c5bed06a25.zip |
Add missing return for when topic isn't found (#20351) (#20395)
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo/topic.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go index 1cc2c50dc2..64dc763dc3 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) |