From a2dbcf95c2a9393efa95477431b97c8ab9ff036e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 15 Jan 2026 18:04:45 +0800 Subject: loose/pack: Remove commented-out verifyTypedObject It's not supposed to be used there anyway --- pack_pack.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pack_pack.go') diff --git a/pack_pack.go b/pack_pack.go index e85c65eb..8d0bb11f 100644 --- a/pack_pack.go +++ b/pack_pack.go @@ -53,10 +53,6 @@ func (repo *Repository) packReadAt(loc packlocation, want Hash) (ObjectType, buf if err != nil { return ObjectTypeInvalid, bufpool.Buffer{}, err } - // if !repo.verifyTypedObject(ty, body.Bytes(), want) { - // body.Release() - // return ObjectTypeInvalid, bufpool.Buffer{}, ErrInvalidObject - // } return ty, body, nil } -- cgit v1.3.1-10-gc9f91