Skip to content

Commit

Permalink
Merge pull request #22 from gprggr/diskv
Browse files Browse the repository at this point in the history
diskv: missing f.Close() in writeStreamWithLock(...)
  • Loading branch information
peterbourgon committed Dec 31, 2014
2 parents 508f567 + aacbe66 commit 72aa5da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions diskv.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (d *Diskv) writeStreamWithLock(key string, r io.Reader, sync bool) error {
}

if err := wc.Close(); err != nil {
f.Close() // error deliberately ignored
return fmt.Errorf("compression close: %s", err)
}

Expand Down

0 comments on commit 72aa5da

Please sign in to comment.