Simplified checking of open dependencies left

Signed-off-by: Konrad <konrad@kola-entertainments.de>
This commit is contained in:
Konrad Langenberg 2017-09-23 15:20:58 +02:00 committed by Konrad
parent 163a0a3822
commit 9b467a309e

View File

@ -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
}