Skip to content

Commit 443517c

Browse files
author
Gusted
committed
Remove duplicated check
1 parent e1d9bcb commit 443517c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

routers/web/repo/issue.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,10 +2508,6 @@ func UpdateIssueStatus(ctx *context.Context) {
25082508
return
25092509
}
25102510
for _, issue := range issues {
2511-
if issue.RepoID != ctx.Repo.Repository.ID {
2512-
ctx.NotFound("some issue's repoID is incorrect", errors.New("some issue's repoID is incorrect"))
2513-
return
2514-
}
25152511
if issue.IsClosed != isClosed {
25162512
if err := issue_service.ChangeStatus(issue, ctx.Doer, isClosed); err != nil {
25172513
if issues_model.IsErrDependenciesLeft(err) {

0 commit comments

Comments
 (0)