diff options
Diffstat (limited to 'models/issue_dependency.go')
-rw-r--r-- | models/issue_dependency.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue_dependency.go b/models/issue_dependency.go index c880bd59c5..6ecaf3432f 100644 --- a/models/issue_dependency.go +++ b/models/issue_dependency.go @@ -71,7 +71,7 @@ func CreateIssueDependency(user *User, issue, dep *Issue) error { } // RemoveIssueDependency removes a dependency from an issue -func RemoveIssueDependency(user *User, issue *Issue, dep *Issue, depType DependencyType) (err error) { +func RemoveIssueDependency(user *User, issue, dep *Issue, depType DependencyType) (err error) { sess := x.NewSession() defer sess.Close() if err = sess.Begin(); err != nil { @@ -107,7 +107,7 @@ func RemoveIssueDependency(user *User, issue *Issue, dep *Issue, depType Depende } // Check if the dependency already exists -func issueDepExists(e Engine, issueID int64, depID int64) (bool, error) { +func issueDepExists(e Engine, issueID, depID int64) (bool, error) { return e.Where("(issue_id = ? AND dependency_id = ?)", issueID, depID).Exist(&IssueDependency{}) } |