Added missing return

This commit is contained in:
kolaente 2018-06-17 16:25:33 +02:00
parent 393013a507
commit 2d95ab1667
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -1065,6 +1065,7 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
ctx.Flash.Error(ctx.Tr("repo.issues.dependency.issue_close_blocked"))
ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, issue.Index), http.StatusSeeOther)
}
return
}
} else {
log.Trace("Issue [%d] status changed to closed: %v", issue.ID, issue.IsClosed)