From 2d1fe758bbac52b3605e9f519bbaac714f0d92c9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 16:16:28 +0000 Subject: object/store/{loose,packed}: TIghten language around Adler-32 --- object/store/packed/read_bytes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object/store/packed/read_bytes.go') diff --git a/object/store/packed/read_bytes.go b/object/store/packed/read_bytes.go index 98ae6995..222d9a05 100644 --- a/object/store/packed/read_bytes.go +++ b/object/store/packed/read_bytes.go @@ -12,7 +12,7 @@ import ( // // It fully resolves the requested object bytes. For base pack entries, this // includes verifying that the zlib stream inflates to exactly the declared -// object size and reaches its Adler-32 trailer. +// object size and verifying the Adler-32 trailer. func (store *Store) ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error) { loc, err := store.lookup(id) if err != nil { @@ -26,7 +26,7 @@ func (store *Store) ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []b // // Like ReadBytesContent, it fully resolves the requested object bytes. For // base pack entries, this includes verifying that the zlib stream inflates to -// exactly the declared object size and reaches its Adler-32 trailer. +// exactly the declared object size and verifying the Adler-32 trailer. func (store *Store) ReadBytesFull(id objectid.ObjectID) ([]byte, error) { ty, content, err := store.ReadBytesContent(id) if err != nil { -- cgit v1.3.1-10-gc9f91