[Modify] Polish it
This commit is contained in:
parent
a42611e27d
commit
898ff1b24b
@ -1239,13 +1239,9 @@ namespace WebSocketSharp.Net
|
||||
|
||||
public static byte[] UrlEncodeToBytes (byte[] bytes, int offset, int count)
|
||||
{
|
||||
if (bytes == null) {
|
||||
if (count != 0)
|
||||
if (bytes == null)
|
||||
throw new ArgumentNullException ("bytes");
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
var len = bytes.Length;
|
||||
if (len == 0) {
|
||||
if (offset != 0 || count != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user