mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-08 03:07:41 -05:00
return type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user