aboutsummaryrefslogtreecommitdiff
path: root/object/tag/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/tag/parse.go
parentobject/id: Nosec G505 for sha1 (diff)
signatureNo signature
object{,/type}: Fix up API shape v0.1.142
Diffstat (limited to 'object/tag/parse.go')
-rw-r--r--object/tag/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/tag/parse.go b/object/tag/parse.go
index f24d5965..92fa0d8b 100644
--- a/object/tag/parse.go
+++ b/object/tag/parse.go
@@ -45,7 +45,7 @@ func Parse(body []byte, algo objectid.Algorithm) (*Tag, error) {
t.Target = id
haveTarget = true
case "type":
- ty, ok := objecttype.ParseName(string(value))
+ ty, ok := objecttype.Parse(string(value))
if !ok {
return nil, errors.New("object: tag: unknown target type")
}