Some code improvements (#14266)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2021-01-06 19:23:57 +00:00
1 parent 8688c2be95
commit 3c96a37162
5 files changed
+17 -3

No files matched your search

+3
View File
@@ -137,6 +137,9 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
return err
}
}
if gitRepo != nil {
gitRepo.Close()
}
if err := sess.Commit(); err != nil {
return err