remove unused new var
This commit is contained in:
parent
fdb73c14b2
commit
1407be3041
1 changed files with 1 additions and 2 deletions
|
|
@ -261,8 +261,7 @@ func (p *printer) _map(m *d2ast.Map) {
|
|||
for i := 0; i < len(m.Nodes); i++ {
|
||||
node := m.Nodes[i]
|
||||
if node.IsBoardNode() {
|
||||
key := node.MapKey.Key
|
||||
switch key.Path[0].Unbox().ScalarString() {
|
||||
switch node.MapKey.Key.Path[0].Unbox().ScalarString() {
|
||||
case "layers":
|
||||
layerNodes = append(layerNodes, node)
|
||||
case "scenarios":
|
||||
|
|
|
|||
Loading…
Reference in a new issue