[Modify] Polish it

This commit is contained in:
sta 2019-09-28 20:30:35 +09:00
parent 079c09ccb6
commit b6011de7cf

View File

@ -2077,8 +2077,10 @@ namespace WebSocketSharp
? BitConverter.GetBytes ((UInt64)(object) value) ? BitConverter.GetBytes ((UInt64)(object) value)
: WebSocket.EmptyBytes; : WebSocket.EmptyBytes;
if (bytes.Length > 1 && !order.IsHostOrder ()) if (bytes.Length > 1) {
if (!order.IsHostOrder ())
Array.Reverse (bytes); Array.Reverse (bytes);
}
return bytes; return bytes;
} }