From 5c15542025c98f89d65331ff01b28daa389cf2a6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Nov 2025 00:00:00 +0000 Subject: Fix some docs and API types --- pack_pack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pack_pack.go') diff --git a/pack_pack.go b/pack_pack.go index 15eedf60..5c2c8628 100644 --- a/pack_pack.go +++ b/pack_pack.go @@ -25,7 +25,7 @@ type packlocation struct { Offset uint64 } -func (repo *Repository) packRead(id Hash) (Object, error) { +func (repo *Repository) packRead(id Hash) (StoredObject, error) { loc, err := repo.packIndexFind(id) if err != nil { return nil, err @@ -64,7 +64,7 @@ func (repo *Repository) packIndexFind(id Hash) (packlocation, error) { return packlocation{}, ErrNotFound } -func (repo *Repository) packReadAt(loc packlocation, want Hash) (Object, error) { +func (repo *Repository) packReadAt(loc packlocation, want Hash) (StoredObject, error) { ty, body, err := repo.packBodyResolveAtLocation(loc) if err != nil { return nil, err -- cgit v1.3.1-10-gc9f91