[Modify] Polish it
This commit is contained in:
parent
ddb794b3b5
commit
1bbac5e3da
@ -1161,8 +1161,11 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
public static byte[] UrlEncodeToBytes (byte[] bytes)
|
public static byte[] UrlEncodeToBytes (byte[] bytes)
|
||||||
{
|
{
|
||||||
int len;
|
if (bytes == null)
|
||||||
return bytes != null && (len = bytes.Length) > 0
|
return null;
|
||||||
|
|
||||||
|
var len = bytes.Length;
|
||||||
|
return len > 0
|
||||||
? InternalUrlEncodeToBytes (bytes, 0, len)
|
? InternalUrlEncodeToBytes (bytes, 0, len)
|
||||||
: bytes;
|
: bytes;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user