aboutsummaryrefslogtreecommitdiff
path: root/obj_blob.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commitec7ddd9b4e4067a046ea4d9b35fa2601b58823ba (patch)
tree292b3e87daff0caee8333dcedb2987581cf664d9 /obj_blob.go
parentUnexport Repository.HashSize (diff)
signature
Rename ObjType enum
Diffstat (limited to 'obj_blob.go')
-rw-r--r--obj_blob.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/obj_blob.go b/obj_blob.go
index d3be2f23..c25f88eb 100644
--- a/obj_blob.go
+++ b/obj_blob.go
@@ -10,7 +10,7 @@ type Blob struct {
// ObjectType allows Blob to satisfy the Object interface.
func (blob *Blob) ObjectType() ObjectType {
_ = blob
- return ObjBlob
+ return ObjectTypeBlob
}
func parseBlob(id Hash, body []byte) (*Blob, error) {
@@ -23,7 +23,7 @@ func parseBlob(id Hash, body []byte) (*Blob, error) {
// Serialize renders the full "blob size\\0body" representation.
func (blob *Blob) Serialize() ([]byte, error) {
- header, err := headerForType(ObjBlob, blob.Data)
+ header, err := headerForType(ObjectTypeBlob, blob.Data)
if err != nil {
return nil, err
}