From b022f7f8f3515e81d584048b4d953966dd0eb3f2 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:37:22 +0800 Subject: object: I guess these checks are unnecessary --- object/tag_parse.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'object/tag_parse.go') 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 -- cgit v1.3.1-10-gc9f91