[Modify] Polish it
This commit is contained in:
parent
a42611e27d
commit
898ff1b24b
@ -1239,12 +1239,8 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
public static byte[] UrlEncodeToBytes (byte[] bytes, int offset, int count)
|
public static byte[] UrlEncodeToBytes (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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user