chore(client): add missing defer close in new snapshot command (#16107)

This commit is contained in:
Julien Robert 2023-05-11 14:30:52 +02:00 committed by GitHub
parent 250c478543
commit e6808cfe1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {