Skip to content

Commit 462513d

Browse files
committed
Prefer types over var
1 parent 8b43645 commit 462513d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ internal sealed class IncomingCommand
4848

4949
public RentedMemory TakeoverBody()
5050
{
51-
var body = Body;
51+
RentedMemory body = Body;
5252
Body = default;
5353
return body;
5454
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Session(Connection connection, ushort channelNumber, uint maxBodyLength)
4848

4949
public override Task HandleFrameAsync(InboundFrame frame, CancellationToken cancellationToken)
5050
{
51-
var cmd = _assembler.HandleFrame(frame);
51+
IncomingCommand cmd = _assembler.HandleFrame(frame);
5252
if (cmd is null)
5353
{
5454
return Task.CompletedTask;

0 commit comments

Comments
 (0)