Commit dbb2ca2e authored by Steven Allen's avatar Steven Allen

remove redundant validation logic

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent e2387ebb
......@@ -295,21 +295,6 @@ func (ds *Shard) loadChild(ctx context.Context, i int) (child, error) {
if err != nil {
return nil, err
}
pbnd, ok := nd.(*dag.ProtoNode)
if !ok {
return nil, dag.ErrNotProtobuf
}
pbd, err := format.FromBytes(pbnd.Data())
if err != nil {
return nil, err
}
if pbd.GetType() != format.THAMTShard {
return nil, fmt.Errorf("HAMT entries must have non-zero length name")
}
cds, err := NewHamtFromDag(ds.dserv, nd)
if err != nil {
return nil, err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment