ok this fork of data and tree meta is a problem we gonna trash some code

This commit is contained in:
Bel LaPointe
2022-02-09 10:04:14 -07:00
parent 9ad262e607
commit ba154be6c2
3 changed files with 52 additions and 16 deletions

View File

@@ -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 {