Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 1ebb1fa

Browse files
committed
Removing deferral of file closing
1 parent c8053b7 commit 1ebb1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/tar_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ func unpackTar(tr *tar.Reader, path string) error {
5656
if err != nil {
5757
return err
5858
}
59-
defer currFile.Close()
6059
_, err = io.Copy(currFile, tr)
6160
if err != nil {
6261
return err
6362
}
63+
currFile.Close()
6464
}
6565

6666
}

0 commit comments

Comments
 (0)