mirror of
https://github.com/restic/restic.git
synced 2026-11-13 22:43:03 +00:00
repository: Simplify Blob equality check
This commit is contained in:
1 parent
243698680a
commit
6408686973
2 files changed
+2
-2
No files matched your search
@@ -543,7 +543,7 @@ func (idx *Index) merge(idx2 *Index) error {
|
||||
m.foreachWithID(e2.id, func(e *indexEntry) {
|
||||
b := idx.toPackedBlob(e, restic.BlobType(typ))
|
||||
b2 := idx2.toPackedBlob(e2, restic.BlobType(typ))
|
||||
if b.Length == b2.Length && b.Offset == b2.Offset && b.PackID == b2.PackID {
|
||||
if b == b2 {
|
||||
found = true
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user