aboutsummaryrefslogtreecommitdiff
path: root/object/tag/serialize.go
diff options
context:
space:
mode:
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 {