From 898ff1b24bcb7bfbcd1cbbab092fbb2f3569aff7 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 24 Sep 2018 21:13:40 +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 b853eece..89533173 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -1239,12 +1239,8 @@ namespace WebSocketSharp.Net public static byte[] UrlEncodeToBytes (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) {