aboutsummaryrefslogtreecommitdiff
path: root/repo_current_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-20 08:00:00 +0800
committerGravatar Runxi Yu2025-11-20 08:00:00 +0800
commit3549b372c868ca4849ac0447c6a3cfddc7232939 (patch)
tree76fb58e19b29f21e9524026c53f64d75a0211a6a /repo_current_test.go
parentRevert "Add initial support for multi pack indexes" (diff)
signatureNo signature
Fix linter errors
Diffstat (limited to 'repo_current_test.go')
-rw-r--r--repo_current_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo_current_test.go b/repo_current_test.go
index ed530385..1799ad62 100644
--- a/repo_current_test.go
+++ b/repo_current_test.go
@@ -16,7 +16,7 @@ func TestCurrentRepoDepthFirstEnumeration(t *testing.T) {
if err != nil {
t.Skipf("failed to open current .git directory: %v", err)
}
- defer repo.Close()
+ defer func() { _ = repo.Close() }()
headHash, err := repo.ResolveRefFully("HEAD")
if err != nil {