Fixing formatting

This commit is contained in:
Mike Farah 2025-12-08 09:42:48 +11:00
parent 6c4d1bd066
commit 42f2436e1f
2 changed files with 73 additions and 72 deletions

View File

@ -184,7 +184,8 @@ func (he *hclEncoder) encodeNode(body *hclwrite.Body, node *CandidateNode) error
return err return err
} }
continue continue
} else { }
// Render as attribute: key = value // Render as attribute: key = value
// Check the style to determine how to encode strings // Check the style to determine how to encode strings
if valueNode.Kind == ScalarNode && valueNode.Tag == "!!str" { if valueNode.Kind == ScalarNode && valueNode.Tag == "!!str" {
@ -268,7 +269,6 @@ func (he *hclEncoder) encodeNode(body *hclwrite.Body, node *CandidateNode) error
body.SetAttributeValue(key, ctyValue) body.SetAttributeValue(key, ctyValue)
} }
} }
}
return nil return nil
} }

View File

@ -275,3 +275,4 @@ nohcl
zclconf zclconf
cty cty
go-cty go-cty
unlabeled