mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 09:54:24 +01:00
add missing defer
This commit is contained in:
parent
aba99ab8fc
commit
8ffaa08b04
|
@ -1076,6 +1076,7 @@ func TestDataAsync_Issue29101(t *testing.T) {
|
|||
|
||||
gitRepo, err := gitrepo.OpenRepository(db.DefaultContext, repo)
|
||||
assert.NoError(t, err)
|
||||
defer gitRepo.Close()
|
||||
|
||||
commit, err := gitRepo.GetCommit(sha)
|
||||
assert.NoError(t, err)
|
||||
|
|
Loading…
Reference in a new issue