embryo: simplify code
This commit is contained in:
parent
4c76f654b9
commit
245e5705da
@ -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
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user