Skip to content

Commit

Permalink
Another place where the CoreSchema singleton should be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvoxel8 committed May 29, 2020
1 parent cacbcd7 commit a6cce4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SharpYaml/Model/YamlValue.cs
Expand Up @@ -38,7 +38,7 @@ public class YamlValue : YamlElement {
public YamlValue(object value, IYamlSchema schema = null) {
var valueString = PrimitiveSerializer.ConvertValue(value);
if (schema == null)
schema = new CoreSchema();
schema = CoreSchema.Instance;

Scalar = new Scalar(schema.GetDefaultTag(value.GetType()), valueString);
}
Expand Down

0 comments on commit a6cce4d

Please sign in to comment.