From 9da262c92189e4007834bf2023f0c032f2a1a0d9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 10:55:24 +0000 Subject: object{,/type}: Fix up API shape --- object/header/append.go | 2 +- object/header/parse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'object/header') diff --git a/object/header/append.go b/object/header/append.go index 8c0d928c..6d824740 100644 --- a/object/header/append.go +++ b/object/header/append.go @@ -12,7 +12,7 @@ func Append(dst []byte, ty objecttype.Type, size int64) ([]byte, bool) { return nil, false } - tyName, ok := objecttype.Name(ty) + tyName, ok := ty.Name() if !ok { return nil, false } 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 } -- cgit v1.3.1-10-gc9f91