Skip to content

Commit

Permalink
Use default options for Utf8JsonWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansjfw committed Mar 8, 2020
1 parent 6787af4 commit 15372c6
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ public override LayoutModel Clone()
protected override void PersistData()
{
FileStream outputStream = File.Open(Settings.AppliedZoneSetTmpFile, FileMode.Create);
JsonWriterOptions writerOptions = new JsonWriterOptions
{
SkipValidation = true,
};
using (var writer = new Utf8JsonWriter(outputStream, writerOptions))
using (var writer = new Utf8JsonWriter(outputStream, options: default))
{
writer.WriteStartObject();
writer.WriteString("uuid", "{" + Guid.ToString().ToUpper() + "}");
Expand Down

0 comments on commit 15372c6

Please sign in to comment.