From 1ada7ce61704286939b78d9a222c80ffa6d3aafc Mon Sep 17 00:00:00 2001 From: Force Charlie <6904176+fcharlie@users.noreply.github.com> Date: Tue, 14 May 2024 11:57:41 +0800 Subject: [PATCH] Fix HashFD close --- pack/stgz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack/stgz.go b/pack/stgz.go index 4b32032..02af314 100644 --- a/pack/stgz.go +++ b/pack/stgz.go @@ -132,7 +132,7 @@ func (fd *HashFD) Close() error { if fd == nil || fd.File == nil { return nil } - return fd.Close() + return fd.File.Close() } // Sum hash sum