diff options
Diffstat (limited to 'weed/filer2/filechunks.go')
| -rw-r--r-- | weed/filer2/filechunks.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go index e8e4c305b..48eaeea27 100644 --- a/weed/filer2/filechunks.go +++ b/weed/filer2/filechunks.go @@ -22,14 +22,14 @@ func TotalSize(chunks []*filer_pb.FileChunk) (size uint64) { func ETag(entry *filer_pb.Entry) (etag string) { if entry.Attributes == nil || entry.Attributes.Md5 == nil { - ETagChunks(entry.Chunks) + return ETagChunks(entry.Chunks) } return fmt.Sprintf("%x", entry.Attributes.Md5) } func ETagEntry(entry *Entry) (etag string) { if entry.Attr.Md5 == nil { - ETagChunks(entry.Chunks) + return ETagChunks(entry.Chunks) } return fmt.Sprintf("%x", entry.Attr.Md5) } |
