embryo: simplify code
This commit is contained in:
parent
4c76f654b9
commit
245e5705da
@ -8,9 +8,5 @@ import (
|
||||
|
||||
func IsEmbryo(c cid.Cid) bool {
|
||||
name, _, ok := actors.GetActorMetaByCode(c)
|
||||
if ok {
|
||||
return name == "embryo"
|
||||
}
|
||||
|
||||
return false
|
||||
return ok && name == "embryo"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user