Skip to content

Commit

Permalink
add missing defer (#16107)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed May 11, 2023
1 parent 23ca154 commit 7a753c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/snapshot/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7a753c6

Please sign in to comment.