Skip to content

Commit c1e62e3

Browse files
author
Antoine Pelisse
committed
Make empty yaml a dict, rather than null
1 parent 3e9f406 commit c1e62e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

value/unstructured.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
func FromYAML(input []byte) (Value, error) {
3232
var decoded interface{}
3333

34-
if len(input) == 0 || (len(input) == 4 && string(input) == "null") {
34+
if len(input) == 4 && string(input) == "null" {
3535
// Special case since the yaml package doesn't accurately
3636
// preserve this.
3737
return Value{Null: true}, nil

0 commit comments

Comments
 (0)