aboutsummaryrefslogtreecommitdiff
path: root/obj_tag.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commitb6d4ab71d42234a4ae2678083d1b7558b8e6519f (patch)
tree993c8a56ee9b2a72237e29cbf41767d4986c2fc5 /obj_tag.go
parenthash: Make fewer helper functions need explicit hash length fields (diff)
signature
Make the API more consistent
Diffstat (limited to 'obj_tag.go')
-rw-r--r--obj_tag.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/obj_tag.go b/obj_tag.go
index dd0dcad0..9230274d 100644
--- a/obj_tag.go
+++ b/obj_tag.go
@@ -128,8 +128,8 @@ func tagBody(t *Tag) ([]byte, error) {
}
// Serialize renders a Tag into canonical Git format.
-func (t *Tag) Serialize() ([]byte, error) {
- body, err := tagBody(t)
+func (tag *Tag) Serialize() ([]byte, error) {
+ body, err := tagBody(tag)
if err != nil {
return nil, err
}