[Modify] Polish it

master
sta 7 years ago
parent 18747d5345
commit ff1fb91652

@ -1177,13 +1177,9 @@ 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) {
if (offset != 0 || count != 0) if (offset != 0 || count != 0)

Loading…
Cancel
Save