From ff1fb91652451e05cc788a6f285e04ce41dd5328 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 23 Sep 2018 17:19:47 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 9372d683..50c0ced7 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1177,12 +1177,8 @@ namespace WebSocketSharp.Net public static string UrlEncode (byte[] bytes, int offset, int count) { - if (bytes == null) { - if (count != 0) - throw new ArgumentNullException ("bytes"); - - return null; - } + if (bytes == null) + throw new ArgumentNullException ("bytes"); var len = bytes.Length; if (len == 0) {