aboutsummaryrefslogtreecommitdiff
path: root/object/header/parse.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 10:55:24 +0000
committerGravatar Runxi Yu2026-03-29 10:55:24 +0000
commit9da262c92189e4007834bf2023f0c032f2a1a0d9 (patch)
tree47eeae7b32fa1d24ab6cfdf942352ef7f566afc5 /object/header/parse.go
parentobject/id: Nosec G505 for sha1 (diff)
signatureNo signature
object{,/type}: Fix up API shape v0.1.142
Diffstat (limited to 'object/header/parse.go')
-rw-r--r--object/header/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/header/parse.go b/object/header/parse.go
index 61678baf..cad521e5 100644
--- a/object/header/parse.go
+++ b/object/header/parse.go
@@ -23,7 +23,7 @@ func Parse(data []byte) (objecttype.Type, int64, int, bool) {
nul := space + 1 + nulRel
- ty, ok := objecttype.ParseName(string(data[:space]))
+ ty, ok := objecttype.Parse(string(data[:space]))
if !ok {
return objecttype.TypeInvalid, 0, 0, false
}