Skip to content

Commit 3cba995

Browse files
Copilotmikefarah
andauthored
Fix stale comment in hasStructuralChildren
Agent-Logs-Url: https://github.com/mikefarah/yq/sessions/24db9a8f-601d-4ccf-ada7-129ed3226bb6 Co-authored-by: mikefarah <1151925+mikefarah@users.noreply.github.com>
1 parent 8c1cb6a commit 3cba995

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/yqlib/encoder_toml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func (te *tomlEncoder) encodeSeparateMapping(w io.Writer, path []string, m *Cand
514514
func (te *tomlEncoder) hasStructuralChildren(m *CandidateNode) bool {
515515
for i := 0; i < len(m.Content); i += 2 {
516516
v := m.Content[i+1]
517-
// Only consider it structural if mapping has EncodeHintSeparateBlock or is non-empty
517+
// Only consider it structural if mapping has EncodeHintSeparateBlock
518518
if v.Kind == MappingNode && v.EncodeHint == EncodeHintSeparateBlock {
519519
return true
520520
}

0 commit comments

Comments
 (0)