mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
Fixed bad line entry for #1422
This commit is contained in:
+4
-1
@@ -268,7 +268,10 @@ func parseSnippet(value string) (*yaml.Node, error) {
|
||||
if len(parsedNode.Node.Content) == 0 {
|
||||
return nil, fmt.Errorf("bad data")
|
||||
}
|
||||
return unwrapDoc(parsedNode.Node), err
|
||||
result := unwrapDoc(parsedNode.Node)
|
||||
result.Line = 0
|
||||
result.Column = 0
|
||||
return result, err
|
||||
}
|
||||
|
||||
func recursiveNodeEqual(lhs *yaml.Node, rhs *yaml.Node) bool {
|
||||
|
||||
Reference in New Issue
Block a user