Skip to content

Commit

Permalink
fix: close file
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and nightfury1204 committed May 13, 2024
1 parent 01a2ab5 commit a0dcf65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/helpers/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func Unarchive(r io.Reader, target string) error {
if err != nil {
return err
}
defer fd.Close()

if _, err := io.Copy(fd, tr); err != nil {
return err
Expand Down

0 comments on commit a0dcf65

Please sign in to comment.