1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2025-07-27 12:30:28 +00:00
This commit is contained in:
Vincent Batts 2014-10-14 17:07:13 -04:00
parent a023c98cd1
commit e6cc87db96
2 changed files with 2 additions and 1 deletions

View file

@ -68,6 +68,7 @@ func hashFile(path string, hash crypto.Hash, info os.FileInfo) *FileHashInfo {
}
if _, err = io.Copy(h, fh); err != nil {
fhi.Err = err
fh.Close()
return &fhi
}
fh.Close()