Skip to content

Commit

Permalink
Update JsonProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
houseofcat committed Apr 19, 2024
1 parent d76df2a commit 375c924
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/HouseofCat.Serialization/JsonProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public async Task<TOut> DeserializeAsync<TOut>(Stream inputStream)

if (inputStream.Position == inputStream.Length) { inputStream.Seek(0, SeekOrigin.Begin); }

return await JsonSerializer.DeserializeAsync<TOut>(inputStream, _options).ConfigureAwait(false);
return await JsonSerializer
.DeserializeAsync<TOut>(inputStream, _options)
.ConfigureAwait(false);
}

public ReadOnlyMemory<byte> Serialize<TIn>(TIn input)
Expand All @@ -63,7 +65,9 @@ public void Serialize<TIn>(Stream outputStream, TIn input)

public async Task SerializeAsync<TIn>(Stream outputStream, TIn input)
{
await JsonSerializer.SerializeAsync(outputStream, input, _options).ConfigureAwait(false);
await JsonSerializer
.SerializeAsync(outputStream, input, _options)
.ConfigureAwait(false);
}

private static readonly JsonSerializerOptions _prettyOptions = new JsonSerializerOptions
Expand Down

0 comments on commit 375c924

Please sign in to comment.