aboutsummaryrefslogtreecommitdiff
path: root/pack_pack.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-15 18:04:45 +0800
committerGravatar Runxi Yu2026-01-15 18:04:45 +0800
commita2dbcf95c2a9393efa95477431b97c8ab9ff036e (patch)
tree148bc6ed2d53a96225c0f71c4f59fd99e0ae86f0 /pack_pack.go
parentREADME.md: Some updates (diff)
signatureNo signature
loose/pack: Remove commented-out verifyTypedObject
It's not supposed to be used there anyway
Diffstat (limited to 'pack_pack.go')
-rw-r--r--pack_pack.go4
1 files changed, 0 insertions, 4 deletions
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
}