[Modify] Polish it

This commit is contained in:
sta 2021-01-31 21:57:50 +09:00
parent 82a214129b
commit aaf9ab8495

View File

@ -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.");