From 3585bb73efcd74454cf123de85fa6e67d34001ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=99=BA=E8=B6=85?= <1012112796@qq.com> Date: Tue, 4 Aug 2020 04:50:29 +0800 Subject: [PATCH] fix a small nit (#12420) Signed-off-by: a1012112796 <1012112796@qq.com> --- routers/repo/pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index ebc4439dd..60326db03 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -715,6 +715,7 @@ func UpdatePullRequest(ctx *context.Context) { } ctx.Flash.Error(err.Error()) ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(issue.Index)) + return } time.Sleep(1 * time.Second)