feat(index): add base bindings and api

This commit is contained in:
Aleksey Kulikov 2021-08-10 20:19:24 +03:00
parent 9a737f8d3e
commit 5b8f089723
5 changed files with 523 additions and 2 deletions

View file

@ -44,8 +44,8 @@ class Reference {
late final Oid oid;
late final bool isDirect;
if (target.runtimeType == Oid) {
oid = target as Oid;
if (target is Oid) {
oid = target;
isDirect = true;
} else if (isValidShaHex(target as String)) {
if (target.length == 40) {