diff --git a/routers/repo/pull.go b/routers/repo/pull.go index ebc4439dda..60326db03a 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)