Skip to content

Commit

Permalink
chore: codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney authored and daveshanley committed Jul 8, 2024
1 parent 626bca5 commit 2277a20
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 @@ -513,12 +513,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 2277a20

Please sign in to comment.