ok this fork of data and tree meta is a problem we gonna trash some code
This commit is contained in:
@@ -113,6 +113,11 @@ func (tree *Tree) Get() (map[string]Branch, error) {
|
||||
return m, err
|
||||
}
|
||||
|
||||
func (tree *Tree) FullId(id string) (string, error) {
|
||||
fullId, _, err := tree.fullIdAndMeta(id)
|
||||
return fullId, err
|
||||
}
|
||||
|
||||
func (tree *Tree) fullIdAndMeta(id string) (string, Branch, error) {
|
||||
m, err := tree.Get()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user