Fixed comments
Signed-off-by: Konrad <konrad@kola-entertainments.de>
This commit is contained in:
parent
2c95447bdf
commit
2f9a4cc9e4
|
|
@ -45,10 +45,6 @@ func (iw *IssueDependency) BeforeUpdate() {
|
||||||
// CreateIssueDependency creates a new dependency for an issue
|
// CreateIssueDependency creates a new dependency for an issue
|
||||||
func CreateIssueDependency(userID, issueID int64, depID int64) (err error, exists bool, depExists bool) {
|
func CreateIssueDependency(userID, issueID int64, depID int64) (err error, exists bool, depExists bool) {
|
||||||
sess := x.NewSession()
|
sess := x.NewSession()
|
||||||
defer sess.Close()
|
|
||||||
if err = sess.Begin(); err != nil {
|
|
||||||
return err, false, false
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Move this to the appropriate place
|
// TODO: Move this to the appropriate place
|
||||||
err = x.Sync(new(IssueDependency))
|
err = x.Sync(new(IssueDependency))
|
||||||
|
|
@ -123,10 +119,6 @@ func CreateIssueDependency(userID, issueID int64, depID int64) (err error, exist
|
||||||
// Removes a dependency from an issue
|
// Removes a dependency from an issue
|
||||||
func RemoveIssueDependency(userID, issueID int64, depID int64, depType int64) (err error) {
|
func RemoveIssueDependency(userID, issueID int64, depID int64, depType int64) (err error) {
|
||||||
sess := x.NewSession()
|
sess := x.NewSession()
|
||||||
defer sess.Close()
|
|
||||||
if err = sess.Begin(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Same as above
|
// TODO: Same as above
|
||||||
err = x.Sync(new(IssueDependency))
|
err = x.Sync(new(IssueDependency))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user