Skip to content

Commit fea4b81

Browse files
grddevsmowton
andauthored
Fix double close
Co-authored-by: Chris Smowton <[email protected]>
1 parent f659ee3 commit fea4b81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/extractor/trap/trapwriter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (tw *Writer) Close() error {
9595
if err != nil {
9696
// throw away file close error
9797
tw.file.Close()
98+
return err
9899
}
99100
err = tw.zip.Close()
100101
if err != nil {

0 commit comments

Comments
 (0)