From b6011de7cf101fc9c1827d08cea6c9f191327d2d Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 28 Sep 2019 20:30:35 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 4e94ebf7..e2cd2fc4 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -2077,8 +2077,10 @@ namespace WebSocketSharp ? BitConverter.GetBytes ((UInt64)(object) value) : WebSocket.EmptyBytes; - if (bytes.Length > 1 && !order.IsHostOrder ()) - Array.Reverse (bytes); + if (bytes.Length > 1) { + if (!order.IsHostOrder ()) + Array.Reverse (bytes); + } return bytes; }