aboutsummaryrefslogtreecommitdiff
path: root/obj.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit5c15542025c98f89d65331ff01b28daa389cf2a6 (patch)
tree18a4cf7eb79ef81d63b9c658dc42b21e69e1282e /obj.go
parentrepo is thread safe (diff)
signature
Fix some docs and API types
Diffstat (limited to 'obj.go')
-rw-r--r--obj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/obj.go b/obj.go
index 7deb330e..8a7eccac 100644
--- a/obj.go
+++ b/obj.go
@@ -92,7 +92,7 @@ func parseObjectBody(ty ObjectType, id Hash, body []byte, repo *Repository) (Sto
}
// ReadObject resolves an ID.
-func (repo *Repository) ReadObject(id Hash) (Object, error) {
+func (repo *Repository) ReadObject(id Hash) (StoredObject, error) {
obj, err := repo.looseRead(id)
if err == nil {
return obj, nil