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