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 }