embryo: simplify code

This commit is contained in:
vyzo 2022-11-11 05:20:27 +02:00
parent 4c76f654b9
commit 245e5705da

View File

@ -8,9 +8,5 @@ import (
func IsEmbryo(c cid.Cid) bool { func IsEmbryo(c cid.Cid) bool {
name, _, ok := actors.GetActorMetaByCode(c) name, _, ok := actors.GetActorMetaByCode(c)
if ok { return ok && name == "embryo"
return name == "embryo"
}
return false
} }