Skip to content

Commit

Permalink
fix empty yaml when running vals eval on documents with comment only …
Browse files Browse the repository at this point in the history
…sections

Signed-off-by: Stephen Claypool <[email protected]>
  • Loading branch information
alstephenclaypool committed Sep 15, 2023
1 parent 193b8a2 commit dc2a15c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func nodesFromReader(reader io.Reader) ([]yaml.Node, error) {
}
break
}
nodes = append(nodes, node)
if len(node.Content[0].Content) > 0 {
nodes = append(nodes, node)
}
}
return nodes, nil
}
Expand Down

0 comments on commit dc2a15c

Please sign in to comment.