Update d2ast.go
This commit is contained in:
parent
d349c206b0
commit
d2cfa5eb1d
1 changed files with 1 additions and 1 deletions
|
|
@ -795,7 +795,7 @@ func (mb MapNodeBox) Unbox() MapNode {
|
|||
}
|
||||
|
||||
func (mb MapNodeBox) IsBoardNode() bool {
|
||||
if mb.MapKey == nil || mb.MapKey.Key == nil || len(mb.MapKey.Key.Path) == 0 {
|
||||
if mb.MapKey == nil || mb.MapKey.Key == nil || len(mb.MapKey.Key.Path) != 1 {
|
||||
return false
|
||||
}
|
||||
switch mb.MapKey.Key.Path[0].Unbox().ScalarString() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue