[Modify] Polish it
This commit is contained in:
parent
aaf9ab8495
commit
0e633fa6e9
@ -131,8 +131,11 @@ namespace WebSocketSharp.Net
|
|||||||
throw new ArgumentOutOfRangeException ("offset", msg);
|
throw new ArgumentOutOfRangeException ("offset", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count < 0)
|
if (count < 0) {
|
||||||
throw new ArgumentOutOfRangeException ("count", "A negative value.");
|
var msg = "A negative value.";
|
||||||
|
|
||||||
|
throw new ArgumentOutOfRangeException ("count", msg);
|
||||||
|
}
|
||||||
|
|
||||||
var len = buffer.Length;
|
var len = buffer.Length;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user