mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 10:04:43 +08:00
UnwrapDoc now private
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
type operatorHandler func(d *dataTreeNavigator, matchingNodes *list.List, pathNode *PathTreeNode) (*list.List, error)
|
||||
|
||||
func UnwrapDoc(node *yaml.Node) *yaml.Node {
|
||||
func unwrapDoc(node *yaml.Node) *yaml.Node {
|
||||
if node.Kind == yaml.DocumentNode {
|
||||
return node.Content[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user