From 8bd1faf2f33e455831b80df4493195848fd03b99 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 26 May 2022 10:08:50 -0400 Subject: sub dependency update, updates D-YAML --- src/ext_depends/D-YAML/source/dyaml/representer.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ext_depends/D-YAML/source/dyaml/representer.d') diff --git a/src/ext_depends/D-YAML/source/dyaml/representer.d b/src/ext_depends/D-YAML/source/dyaml/representer.d index 98c825b..f903b60 100644 --- a/src/ext_depends/D-YAML/source/dyaml/representer.d +++ b/src/ext_depends/D-YAML/source/dyaml/representer.d @@ -91,7 +91,9 @@ Node representData(const Node data, ScalarStyle defaultScalarStyle, CollectionSt { result.collectionStyle = defaultCollectionStyle; } + break; case NodeID.invalid: + break; } @@ -123,7 +125,7 @@ Node representData(const Node data, ScalarStyle defaultScalarStyle, CollectionSt @safe unittest { - assert(representData(Node(cast(string)null), ScalarStyle.invalid, CollectionStyle.invalid) == Node("null", "tag:yaml.org,2002:null")); + assert(representData(Node(cast(string)null), ScalarStyle.invalid, CollectionStyle.invalid) == Node("", "tag:yaml.org,2002:str")); assert(representData(Node("Hello world!"), ScalarStyle.invalid, CollectionStyle.invalid) == Node("Hello world!", "tag:yaml.org,2002:str")); } @@ -289,9 +291,7 @@ Node representNull() @safe Node representString(const Node node) @safe { string value = node.as!string; - return value is null - ? Node("null", "tag:yaml.org,2002:null") - : Node(value, "tag:yaml.org,2002:str"); + return Node(value, "tag:yaml.org,2002:str"); } //Represent a bytes _node as a binary scalar. -- cgit v1.2.3