Browse Source

Properly close files after downloading them

pull/8/head
Daniel Martí 11 years ago
parent
commit
c6bf5b85fb
  1. 1
      cmd/fdroidcl/update.go

1
cmd/fdroidcl/update.go

@ -75,6 +75,7 @@ func downloadEtag(url, path string, sum []byte) error {
if err != nil {
return err
}
defer f.Close()
if sum == nil {
_, err := io.Copy(f, resp.Body)
if err != nil {

Loading…
Cancel
Save