Skip to content

Commit b8d90fd

Browse files
mikefarahccoVeille
andauthored
Update pkg/yqlib/candidate_node.go
Co-authored-by: ccoVeille <[email protected]>
1 parent b974d97 commit b8d90fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/yqlib/candidate_node.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,7 @@ func (n *CandidateNode) UpdateAttributesFrom(other *CandidateNode, prefs assignP
466466
}
467467

468468
// Preserve EncodeSeparate flag for format-specific encoding hints
469-
if other.EncodeSeparate {
470-
n.EncodeSeparate = true
471-
}
469+
n.EncodeSeparate = other.EncodeSeparate
472470

473471
// merge will pickup the style of the new thing
474472
// when autocreating nodes

0 commit comments

Comments
 (0)