Skip to content

Commit cab159f

Browse files
stebetlukebakken
authored andcommitted
Fixing lints.
1 parent 8793e06 commit cab159f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/RabbitMQ.Client/client/impl/Frame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ internal static async ValueTask<InboundFrame> ReadFromPipe(PipeReader reader, ui
277277
while (!TryReadFrame(ref buffer, maxMessageSize, out frame))
278278
{
279279
reader.AdvanceTo(buffer.Start, buffer.End);
280-
280+
281281
// No need to try a synchronous read since we have an incomplete frame anyway, so we'll always need to go async
282282
result = await reader.ReadAsync().ConfigureAwait(false);
283283

@@ -295,7 +295,7 @@ internal static async ValueTask<InboundFrame> ReadFromPipe(PipeReader reader, ui
295295

296296
internal static bool TryReadFrame(ref ReadOnlySequence<byte> buffer, uint maxMessageSize, out InboundFrame frame)
297297
{
298-
if(buffer.Length < 7)
298+
if (buffer.Length < 7)
299299
{
300300
frame = default;
301301
return false;

projects/RabbitMQ.Client/util/NetworkOrderDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal static ushort ReadUInt16(ReadOnlySpan<byte> span)
4747
[MethodImpl(MethodImplOptions.AggressiveInlining)]
4848
internal static ushort ReadUInt16(ReadOnlySequence<byte> buffer)
4949
{
50-
if(!BinaryPrimitives.TryReadUInt16BigEndian(buffer.First.Span, out ushort value))
50+
if (!BinaryPrimitives.TryReadUInt16BigEndian(buffer.First.Span, out ushort value))
5151
{
5252
Span<byte> bytes = stackalloc byte[2];
5353
buffer.Slice(0, 2).CopyTo(bytes);

0 commit comments

Comments
 (0)