diff options
Diffstat (limited to 'object/tree_parse.go')
| -rw-r--r-- | object/tree_parse.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/object/tree_parse.go b/object/tree_parse.go index ee475803..b9063d75 100644 --- a/object/tree_parse.go +++ b/object/tree_parse.go @@ -10,10 +10,6 @@ import ( // ParseTree decodes a tree object body. func ParseTree(body []byte, algo oid.Algorithm) (*Tree, error) { - if algo.Size() == 0 { - return nil, fmt.Errorf("object: tree: invalid hash algorithm %q", algo) - } - var entries []TreeEntry i := 0 for i < len(body) { |
