Simplified checking of open dependencies left
Signed-off-by: Konrad <konrad@kola-entertainments.de>
This commit is contained in:
parent
163a0a3822
commit
9b467a309e
|
|
@ -473,9 +473,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
|
|||
}
|
||||
|
||||
// Check for dependencies, if there aren't any, close it
|
||||
canbeClosed := IssueNoDependenciesLeft(issue)
|
||||
|
||||
if canbeClosed {
|
||||
if IssueNoDependenciesLeft(issue) {
|
||||
if err = issue.ChangeStatus(doer, repo, true); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user