aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-12-01 19:52:45 +0800
committerGravatar Runxi Yu2025-12-01 19:52:45 +0800
commitc612a57913f5cbb38d72a66932f233f6c3ee874b (patch)
tree232a460ce14247ffaaa631691eff7794a004328b /cmd
parenttestutil: Use .git pattern for test repos (diff)
signatureNo signature
show-object: Fix errcheck linter error
Diffstat (limited to 'cmd')
-rw-r--r--cmd/show-object/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/show-object/main.go b/cmd/show-object/main.go
index 287c6027..d33f8d1b 100644
--- a/cmd/show-object/main.go
+++ b/cmd/show-object/main.go
@@ -21,7 +21,9 @@ func main() {
if err != nil {
log.Fatalf("open repo: %v", err)
}
- defer repo.Close()
+ defer func() {
+ _ = repo.Close()
+ }()
h, err := repo.ResolveRefFully(*ref)
if err != nil {