Fix double close

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
Gustav
2022-11-11 17:12:13 +01:00
committed by GitHub
parent f659ee3e0b
commit fea4b816af

View File

@@ -95,6 +95,7 @@ func (tw *Writer) Close() error {
if err != nil {
// throw away file close error
tw.file.Close()
return err
}
err = tw.zip.Close()
if err != nil {