Fix bugs with storage

This commit is contained in:
mcrakhman committed 2022-10-20 16:02:16 +02:00
1 parent efa3acc368
commit f21f05585c
6 files changed
+64 -5

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ func (t *treeStorage) Heads() (heads []string, err error) {
if err != nil {
return
}
if heads == nil {
if headsBytes == nil {
err = storage2.ErrUnknownTreeId
return
}