From 9b467a309e8e34963faa5c43171a228faf992e8a Mon Sep 17 00:00:00 2001 From: Konrad Langenberg Date: Sat, 23 Sep 2017 15:20:58 +0200 Subject: [PATCH] Simplified checking of open dependencies left Signed-off-by: Konrad --- models/action.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/models/action.go b/models/action.go index ec1f630a8..823f518c8 100644 --- a/models/action.go +++ b/models/action.go @@ -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 }