diff options
| author | 2026-02-20 22:37:22 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:37:22 +0800 | |
| commit | b022f7f8f3515e81d584048b4d953966dd0eb3f2 (patch) | |
| tree | da676656b4d6b29c9b0c0ba9c0a51ed2bc6d7add /object/tag_parse.go | |
| parent | object: Remove the old opaque errors (diff) | |
| signature | No signature | |
object: I guess these checks are unnecessary
Diffstat (limited to 'object/tag_parse.go')
| -rw-r--r-- | object/tag_parse.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/object/tag_parse.go b/object/tag_parse.go index 84256166..27dc998d 100644 --- a/object/tag_parse.go +++ b/object/tag_parse.go @@ -11,10 +11,6 @@ import ( // ParseTag decodes a tag object body. func ParseTag(body []byte, algo oid.Algorithm) (*Tag, error) { - if algo.Size() == 0 { - return nil, fmt.Errorf("object: tag: invalid hash algorithm %q", algo) - } - t := new(Tag) i := 0 var haveTarget, haveType bool |
