diff --git a/kernel/util/etag.go b/kernel/util/etag.go index 2152966f9..9c9fbee86 100644 --- a/kernel/util/etag.go +++ b/kernel/util/etag.go @@ -80,7 +80,6 @@ func BlockCount(fsize int64) int { } func CalSha1(b []byte, r io.Reader) ([]byte, error) { - h := sha1.New() _, err := io.Copy(h, r) if err != nil {