helpers: Avoid writing the last MD5 buff part twice

This commit is contained in:
Bjørn Erik Pedersen
2017-12-28 22:52:27 +01:00
parent e50a8c7a14
commit 612dcc1944
3 changed files with 5 additions and 7 deletions

View File

@@ -410,8 +410,6 @@ func MD5FromFileFast(f afero.File) (string, error) {
h.Write(buff)
}
h.Write(buff)
return hex.EncodeToString(h.Sum(nil)), nil
}