From e3201e336f7cb6f58e69741e2655c7768e7e6127 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 25 Jul 2019 20:08:16 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 2d259566..55505d95 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -581,13 +581,16 @@ namespace WebSocketSharp return ret; } - internal static byte[] InternalToByteArray (this ulong value, ByteOrder order) + internal static byte[] InternalToByteArray ( + this ulong value, ByteOrder order + ) { - var bytes = BitConverter.GetBytes (value); - if (!order.IsHostOrder ()) - Array.Reverse (bytes); + var ret = BitConverter.GetBytes (value); - return bytes; + if (!order.IsHostOrder ()) + Array.Reverse (ret); + + return ret; } internal static bool IsCompressionExtension (