diff options
| author | 2026-03-22 23:10:37 +0000 | |
|---|---|---|
| committer | 2026-03-22 23:13:19 +0000 | |
| commit | ab6f8dde0cdc554084c4455c76feef0099db70d9 (patch) | |
| tree | 6c6a207d6094a8d99b1b1b43f8bdee93c19871e0 /objectstore/chain/bytes.go | |
| parent | commitgraph: Tighten docs and use a value-ish Filter return (diff) | |
| signature | No signature | |
*: Fixup ownership of compositional backends v0.1.88
Diffstat (limited to 'objectstore/chain/bytes.go')
| -rw-r--r-- | objectstore/chain/bytes.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/objectstore/chain/bytes.go b/objectstore/chain/bytes.go index 007c7522..64771608 100644 --- a/objectstore/chain/bytes.go +++ b/objectstore/chain/bytes.go @@ -12,10 +12,6 @@ import ( // ReadBytesFull reads a full serialized object from the first backend that has it. func (chain *Chain) ReadBytesFull(id objectid.ObjectID) ([]byte, error) { for i, backend := range chain.backends { - if backend == nil { - continue - } - full, err := backend.ReadBytesFull(id) if err == nil { return full, nil @@ -34,10 +30,6 @@ func (chain *Chain) ReadBytesFull(id objectid.ObjectID) ([]byte, error) { // ReadBytesContent reads an object's type and content bytes from the first backend that has it. func (chain *Chain) ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error) { for i, backend := range chain.backends { - if backend == nil { - continue - } - ty, content, err := backend.ReadBytesContent(id) if err == nil { return ty, content, nil |
