Close files in ExtractTar
This commit is contained in:
parent
d934f03d70
commit
7c2ce93981
@ -38,6 +38,10 @@ func ExtractTar(body io.Reader, dir string) error {
|
||||
if _, err := io.Copy(f, tr); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := f.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user