mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-13 21:48:35 -07:00
remove separate key for L/S count
This commit is contained in:
@@ -102,8 +102,10 @@ func (h *hook) Close() (err error) {
|
||||
if cl, isOk := h.hashContainer.(io.Closer); isOk {
|
||||
err = cl.Close()
|
||||
}
|
||||
if stErr := h.providedStorage.Close(); stErr != nil {
|
||||
err = errors.Join(err, stErr)
|
||||
if h.providedStorage != nil {
|
||||
if stErr := h.providedStorage.Close(); stErr != nil {
|
||||
err = errors.Join(err, stErr)
|
||||
}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user