[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)
|
||||
{
|
||||
int len;
|
||||
return bytes != null && (len = bytes.Length) > 0
|
||||
if (bytes == null)
|
||||
return null;
|
||||
|
||||
var len = bytes.Length;
|
||||
return len > 0
|
||||
? InternalUrlEncodeToBytes (bytes, 0, len)
|
||||
: bytes;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user