Skip to content

Commit

Permalink
fix: Flush the writer, not the element
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed Aug 7, 2024
1 parent ac193b4 commit 42b15c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Remora.Rest/Extensions/JsonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static class JsonExtensions
using var writer = new Utf8JsonWriter(bufferWriter);
element.WriteTo(writer);

element.Flush();
writer.Flush();

return JsonSerializer.Deserialize<TEntity>(bufferWriter.WrittenSpan, options);
}
Expand Down

0 comments on commit 42b15c3

Please sign in to comment.