[Modify] Polish it

This commit is contained in:
sta 2021-11-04 20:15:26 +09:00
parent 4461c7afbc
commit 01148aaa46

View File

@ -286,8 +286,11 @@ namespace WebSocketSharp.Server
}
set {
if (value <= TimeSpan.Zero)
throw new ArgumentOutOfRangeException ("value", "Zero or less.");
if (value <= TimeSpan.Zero) {
var msg = "It is zero or less.";
throw new ArgumentOutOfRangeException ("value", msg);
}
lock (_sync) {
string msg;