diff options
author | Unknwon <u@gogs.io> | 2015-11-15 23:52:46 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-15 23:52:46 -0500 |
commit | 18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89 (patch) | |
tree | c5f142fdee161a61867756631ae63b439e7d902f /models/repo.go | |
parent | 1a901433e2a27e5bcd29216fdb57082be620b745 (diff) | |
download | gitea-18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89.tar.gz gitea-18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89.zip |
fix #1958
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index bbd978ff4b..9b2c7bc6c0 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1116,7 +1116,7 @@ func DeleteRepository(uid, repoID int64) error { return err } else if _, err = sess.Delete(&Milestone{RepoID: repoID}); err != nil { return err - } else if _, err = sess.Delete(&Release{RepoId: repoID}); err != nil { + } else if _, err = sess.Delete(&Release{RepoID: repoID}); err != nil { return err } else if _, err = sess.Delete(&Collaboration{RepoID: repoID}); err != nil { return err |