Skip to content

Commit

Permalink
chore: codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney committed Jun 13, 2024
1 parent c4ab9cb commit 4f88e27
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions datamodel/high/node_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,10 @@ func (n *NodeBuilder) AddYAMLNode(parent *yaml.Node, entry *nodes.NodeEntry) *ya
valueNode.Line = line
}
}
if b, bok := value.(*yaml.Node); bok {
if b.Kind == yaml.ScalarNode && b.Tag == "!!null" {
encodeSkip = true
valueNode = utils.CreateEmptyScalarNode()
valueNode.Line = line
}
if b, bok := value.(*yaml.Node); bok && b.Kind == yaml.ScalarNode && b.Tag == "!!null" {
encodeSkip = true
valueNode = utils.CreateEmptyScalarNode()
valueNode.Line = line
}
if !encodeSkip {
var rawNode yaml.Node
Expand Down

0 comments on commit 4f88e27

Please sign in to comment.