remove unused new var

This commit is contained in:
Bernard Xie 2023-06-19 17:39:38 -07:00
parent fdb73c14b2
commit 1407be3041
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -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":