[Modify] Polish it

This commit is contained in:
sta 2018-09-23 17:19:47 +09:00
parent 18747d5345
commit ff1fb91652

View File

@ -1177,12 +1177,8 @@ namespace WebSocketSharp.Net
public static string UrlEncode (byte[] bytes, int offset, int count) public static string UrlEncode (byte[] bytes, int offset, int count)
{ {
if (bytes == null) { if (bytes == null)
if (count != 0) throw new ArgumentNullException ("bytes");
throw new ArgumentNullException ("bytes");
return null;
}
var len = bytes.Length; var len = bytes.Length;
if (len == 0) { if (len == 0) {