mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
helpers: Avoid writing the last MD5 buff part twice
This commit is contained in:
@@ -410,8 +410,6 @@ func MD5FromFileFast(f afero.File) (string, error) {
|
||||
h.Write(buff)
|
||||
}
|
||||
|
||||
h.Write(buff)
|
||||
|
||||
return hex.EncodeToString(h.Sum(nil)), nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user