Skip to content

Commit

Permalink
Merge pull request #847 from Pliner/remove-unreachable-code
Browse files Browse the repository at this point in the history
Deletion of unreachable code
  • Loading branch information
michaelklishin authored May 25, 2020
2 parents fb8e1f2 + ae3c96d commit 20d81b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions projects/RabbitMQ.Client/client/impl/SocketFrameHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ public void WriteFrame(OutboundFrame frame, bool flush = true)
_socket.Client.Poll(_writeableStateTimeoutMicroSeconds, SelectMode.SelectWrite);
Write(slice.Slice(0, frame.ByteCount), flush);
ArrayPool<byte>.Shared.Return(memoryArray);
return;

throw new InvalidOperationException("Unable to get array segment from memory.");
}

public void WriteFrameSet(IList<OutboundFrame> frames)
Expand Down

0 comments on commit 20d81b1

Please sign in to comment.