From e8bb5572a0120ba38c5c9ff01db0789a3986d332 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 29 Oct 2019 18:35:05 +0100 Subject: [PATCH] add return avter error on right position --- routers/api/v1/repo/issue.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 993452d0b3..6fcb2abfb6 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -654,8 +654,9 @@ func AddIssueSubscription(ctx *context.APIContext) { ctx.NotFound() } else { ctx.Error(500, "GetUserByName", err) - return } + + return } //only admin and user for itself can change subscription @@ -727,8 +728,9 @@ func DelIssueSubscription(ctx *context.APIContext) { ctx.NotFound() } else { ctx.Error(500, "GetUserByName", err) - return } + + return } //only admin and user for itself can change subscription