mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-05 12:10:37 +00:00
Merge 6038cf0c50 into 76c817009f
This commit is contained in:
commit
ed1e9bbfe2
@ -129,6 +129,8 @@ func (dec *yamlDecoder) Decode() (*CandidateNode, error) {
|
||||
return nil, err
|
||||
} else if err != nil {
|
||||
return nil, err
|
||||
} else if len(yamlNode.Content) == 0 {
|
||||
return nil, errors.New("yaml node has no content")
|
||||
}
|
||||
|
||||
candidateNode := CandidateNode{document: dec.documentIndex}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user