aboutsummaryrefslogtreecommitdiff
path: root/object/tag/serialize.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-20 17:12:31 +0000
committerGravatar Runxi Yu2026-05-20 17:12:31 +0000
commit33103e13b34d3f40fae507d657fc1750c66c3b8c (patch)
tree9083f56d20adb2f7bbb7f0ca07ada53214528bdf /object/tag/serialize.go
parentreachability: CheckConnected should get a strict option (diff)
signatureNo signature
object/tag: Rename Target to TargetID
Diffstat (limited to 'object/tag/serialize.go')
-rw-r--r--object/tag/serialize.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/tag/serialize.go b/object/tag/serialize.go
index 43fad522..301984cc 100644
--- a/object/tag/serialize.go
+++ b/object/tag/serialize.go
@@ -11,12 +11,12 @@ import (
// BytesWithoutHeader renders the raw tag body bytes.
func (tag *Tag) BytesWithoutHeader() ([]byte, error) {
- if tag.Target.Algorithm().Size() == 0 {
+ if tag.TargetID.Algorithm().Size() == 0 {
return nil, errors.New("object: tag: missing target id")
}
var buf bytes.Buffer
- fmt.Fprintf(&buf, "object %s\n", tag.Target.String())
+ fmt.Fprintf(&buf, "object %s\n", tag.TargetID.String())
tyName, ok := tag.TargetType.Name()
if !ok {