Skip to content

Commit 063e604

Browse files
committed
remove trailing whitespaces
1 parent 2adff6d commit 063e604

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal ref struct ContentHeaderPropertyReader
5454
private int _offset;
5555
private int _bitMask;
5656
private int _bits;
57-
57+
5858
private ReadOnlySpan<byte> Span => _span.Slice(_offset);
5959

6060
public ContentHeaderPropertyReader(ReadOnlySpan<byte> span)

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void WriteBit(bool bit)
7676
{
7777
WritePresence(bit);
7878
}
79-
79+
8080
public void WriteLong(uint val)
8181
{
8282
_offset += WireFormatting.WriteLong(Span, val);
@@ -96,7 +96,7 @@ public void WriteOctet(byte val)
9696
{
9797
_span[_offset++] = val;
9898
}
99-
99+
100100
public void WritePresence(bool present)
101101
{
102102
if (_bitMask == EndBitMask)
@@ -113,7 +113,7 @@ public void WritePresence(bool present)
113113

114114
_bitMask >>= 1;
115115
}
116-
116+
117117
public void WriteShort(ushort val)
118118
{
119119
_offset += WireFormatting.WriteShort(Span, val);
@@ -133,7 +133,7 @@ public void WriteTimestamp(AmqpTimestamp val)
133133
{
134134
_offset += WireFormatting.WriteTimestamp(Span, val);
135135
}
136-
136+
137137
private void WriteBits()
138138
{
139139
NetworkOrderSerializer.WriteUInt16(Span, _bitAccumulator);

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ internal int GetMinimumBufferSize()
165165
{
166166
return 8 + GetMinimumPayloadBufferSize();
167167
}
168-
168+
169169
public override string ToString()
170170
{
171171
return $"(type={Type}, channel={Channel})";
@@ -304,13 +304,13 @@ public void Dispose()
304304
ArrayPool<byte>.Shared.Return(segment.Array);
305305
}
306306
}
307-
307+
308308
public override string ToString()
309309
{
310310
return $"(type={Type}, channel={Channel}, {Payload.Length} bytes of payload)";
311311
}
312312
}
313-
313+
314314
internal enum FrameType : int
315315
{
316316
FrameMethod = Constants.FrameMethod,

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ internal ref struct MethodArgumentReader
5151
private int _offset;
5252
private int _bitMask;
5353
private int _bits;
54-
54+
5555
private ReadOnlySpan<byte> Span => _span.Slice(_offset);
5656

5757
public MethodArgumentReader(ReadOnlySpan<byte> span)
@@ -80,14 +80,14 @@ public byte[] ReadContent()
8080
{
8181
throw new NotSupportedException("ReadContent should not be called");
8282
}
83-
83+
8484
public uint ReadLong()
8585
{
8686
uint result = NetworkOrderDeserializer.ReadUInt32(Span);
8787
_offset += 4;
8888
return result;
8989
}
90-
90+
9191
public ulong ReadLonglong()
9292
{
9393
ulong result = NetworkOrderDeserializer.ReadUInt64(Span);

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void WriteBit(bool val)
7171
}
7272
_bitMask <<= 1;
7373
}
74-
74+
7575
public void EndBits()
7676
{
7777
if (_bitMask > 1)
@@ -96,7 +96,7 @@ public void WriteLonglong(ulong val)
9696
{
9797
_offset += WireFormatting.WriteLonglong(Span, val);
9898
}
99-
99+
100100
public void WriteLongstr(byte[] val)
101101
{
102102
_offset += WireFormatting.WriteLongstr(Span, val);

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ public static int WriteTable(Span<byte> span, IDictionary<string, object> val)
493493
{
494494
bytesWritten += WriteShortstr(slice.Slice(bytesWritten), entry.Key);
495495
bytesWritten += WriteFieldValue(slice.Slice(bytesWritten), entry.Value);
496-
}
496+
}
497497
}
498498
else
499499
{
500500
foreach (KeyValuePair<string, object> entry in val)
501501
{
502502
bytesWritten += WriteShortstr(slice.Slice(bytesWritten), entry.Key);
503503
bytesWritten += WriteFieldValue(slice.Slice(bytesWritten), entry.Value);
504-
}
504+
}
505505
}
506506

507507
NetworkOrderSerializer.WriteUInt32(span, (uint)bytesWritten);

0 commit comments

Comments
 (0)