mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Use default options for Utf8JsonWriter (#1497)
This commit is contained in:
parent
7ac378dcd3
commit
4dbe535e1e
@ -120,11 +120,7 @@ namespace FancyZonesEditor.Models
|
||||
try
|
||||
{
|
||||
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() + "}");
|
||||
|
Loading…
Reference in New Issue
Block a user