Merge pull request #2811 from monopole/moveToNewConstants

Move to new constants.
This commit is contained in:
Jeff Regan
2020-08-07 12:21:02 -07:00
committed by jregan
11 changed files with 27 additions and 35 deletions

View File

@@ -179,7 +179,7 @@ func (r *ByteReader) Read() ([]*yaml.RNode, error) {
func isEmptyDocument(node *yaml.Node) bool {
// node is a Document with no content -- e.g. "---\n---"
return node.Kind == yaml.DocumentNode &&
node.Content[0].Tag == yaml.NullNodeTag
node.Content[0].Tag == yaml.NodeTagNull
}
func (r *ByteReader) decode(index int, decoder *yaml.Decoder) (*yaml.RNode, error) {