Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit cbcb609

Browse files
committed
Address PR feedback
Signed-off-by: Filip Navara <[email protected]>
1 parent 38c061e commit cbcb609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plumbing/format/packfile/packfile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (p *Packfile) getObjectType(h *ObjectHeader) (typ plumbing.ObjectType, err
184184
}
185185

186186
func (p *Packfile) objectAtOffset(offset int64, hash plumbing.Hash) (plumbing.EncodedObject, error) {
187-
if obj, ok := p.deltaBaseCache.Get(hash); ok {
187+
if obj, ok := p.cacheGet(hash); ok {
188188
return obj, nil
189189
}
190190

@@ -237,7 +237,7 @@ func (p *Packfile) getNextObject(h *ObjectHeader, hash plumbing.Hash) (plumbing.
237237
} else {
238238
err = p.fillOFSDeltaObjectContentWithBuffer(obj, h.OffsetReference, buf)
239239
}
240-
return obj, nil
240+
return obj, err
241241
}
242242
} else {
243243
size, err = p.getObjectSize(h)

0 commit comments

Comments
 (0)