diff options
| author | 2026-06-08 07:35:30 +0000 | |
|---|---|---|
| committer | 2026-06-08 07:35:30 +0000 | |
| commit | 037fbb24cd91e4804a8c66849f66592dbcbc007b (patch) | |
| tree | 0fa9af4a761384f2e0e578609ccff493cdcf0912 /object/fetch/object.go | |
| parent | object/fetch: Fix tag's error import (diff) | |
object/fetch: Fix size types
Diffstat (limited to 'object/fetch/object.go')
| -rw-r--r-- | object/fetch/object.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/object/fetch/object.go b/object/fetch/object.go index 4c999871..5dbb84ab 100644 --- a/object/fetch/object.go +++ b/object/fetch/object.go @@ -29,12 +29,7 @@ func (fetcher *Fetcher) parseObject(id oid.ObjectID) (object.Object, error) { parsed, err := object.ParseWithoutHeader(ty, content, id.ObjectFormat()) if err != nil { - tyName, ok := ty.Name() - if !ok { - tyName = fmt.Sprintf("type %d", ty) - } - - return nil, fmt.Errorf("object/fetch: parse object %s (%s): %w", id, tyName, err) + return nil, fmt.Errorf("object/fetch: parse object %s (%s): %w", id, ty.Name(), err) } return parsed, nil |
