[Modify] Polish it
This commit is contained in:
parent
18747d5345
commit
ff1fb91652
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user