diff --git a/d2ir/compile.go b/d2ir/compile.go index f4fc7775b..fb9ca598e 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -308,12 +308,6 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { ScopeAST: scopeAST, }) case n.Substitution != nil: - if !n.Substitution.Spread { - // TODO parser parses ${x} as a field with name "$" and map of child x - // So this is never reached. But that parser behavior could change - c.errorf(n.Substitution, "invalid non-spread substitution in map") - continue - } // placeholder field to be resolved at the end f := &Field{ parent: dst,