[Modify] Polish it

This commit is contained in:
sta 2021-02-01 21:17:48 +09:00
parent aaf9ab8495
commit 0e633fa6e9

View File

@ -131,8 +131,11 @@ namespace WebSocketSharp.Net
throw new ArgumentOutOfRangeException ("offset", msg);
}
if (count < 0)
throw new ArgumentOutOfRangeException ("count", "A negative value.");
if (count < 0) {
var msg = "A negative value.";
throw new ArgumentOutOfRangeException ("count", msg);
}
var len = buffer.Length;