diff --git a/weed/storage/needle/needle_parse_upload.go b/weed/storage/needle/needle_parse_upload.go index 7df0069e9..6dd61821f 100644 --- a/weed/storage/needle/needle_parse_upload.go +++ b/weed/storage/needle/needle_parse_upload.go @@ -103,9 +103,7 @@ type ChecksumReader struct { func (cr *ChecksumReader) Read(p []byte) (int, error) { n, err := cr.r.Read(p) - if err == nil { - cr.h.Write(p[:n]) - } + cr.h.Write(p[:n]) return n, err }