Skip to content

Commit

Permalink
dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Sep 25, 2024
1 parent 4d40075 commit 6c5b2a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/NATS.Client.TestUtilities/NatsProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void Write(string? rawFrame)
var span = buffer.AsSpan();
while (true)
{
#if !NET6_0_OR_GREATER
#if !NET6_0_OR_GREATER
var bytes = ArrayPool<char>.Shared.Rent(span.Length);
var read = sr.Read(bytes, 0, span.Length);

Expand All @@ -276,9 +276,9 @@ void Write(string? rawFrame)
}

ArrayPool<char>.Shared.Return(bytes);
#else
#else
var read = sr.Read(span);
#endif
#endif

if (read == 0)
break;
Expand Down

0 comments on commit 6c5b2a4

Please sign in to comment.