mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-06 13:25:42 +00:00
Remove redundant logic
This commit is contained in:
parent
ce9a4af0df
commit
78c096fa8f
@ -250,7 +250,7 @@ func applyMergeAnchor(node *CandidateNode, merge *CandidateNode, mergeIndex int,
|
|||||||
"can only use merge anchors with maps (!!map) or sequences (!!seq) of maps, but got sequence containing %v",
|
"can only use merge anchors with maps (!!map) or sequences (!!seq) of maps, but got sequence containing %v",
|
||||||
childValue.Tag)
|
childValue.Tag)
|
||||||
}
|
}
|
||||||
err := applyMergeAnchorMap(node, childValue, mergeIndex, inline && childInline, newContent)
|
err := applyMergeAnchorMap(node, childValue, mergeIndex, childInline, newContent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user