use C#7 out variable declaration

This commit is contained in:
Paul Pacheco 2019-02-22 18:59:35 -06:00
parent 9f21421d33
commit 505d2b85ad

View File

@ -91,9 +91,7 @@ void ProcessInternalMessages()
internal void InvokeBytesOnClient(byte[] buffer) internal void InvokeBytesOnClient(byte[] buffer)
{ {
// unpack message and post to internal list for processing // unpack message and post to internal list for processing
ushort msgType; if (Protocol.UnpackMessage(buffer, out ushort msgType, out byte[] content))
byte[] content;
if (Protocol.UnpackMessage(buffer, out msgType, out content))
{ {
PostInternalMessage((short)msgType, content); PostInternalMessage((short)msgType, content);
} }