return type

This commit is contained in:
liuliu
2022-06-16 13:32:51 -07:00
parent e90e1237a0
commit 1432f716fe

View File

@@ -87,7 +87,7 @@ func (db *database) loadDatasetsNomsMap(ctx context.Context, rootHash hash.Hash)
}
if val == nil {
return nil, errors.New("Root hash doesn't exist")
return types.EmptyMap, errors.New("Root hash doesn't exist")
}
return val.(types.Map), nil
@@ -104,7 +104,7 @@ func (db *database) loadDatasetsRefmap(ctx context.Context, rootHash hash.Hash)
}
if val == nil {
return nil, errors.New("Root hash doesn't exist")
return prolly.AddressMap{}, errors.New("Root hash doesn't exist")
}
return parse_storeroot([]byte(val.(types.SerialMessage)), db.chunkStore()), nil