chore(client): add missing defer close in new snapshot command (#16107)
This commit is contained in:
parent
250c478543
commit
e6808cfe1d
@ -82,6 +82,7 @@ func DumpArchiveCmd() *cobra.Command {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to open chunk file %s: %w", path, err)
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
st, err := file.Stat()
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user