[Modify] Polish it

This commit is contained in:
sta 2021-10-04 20:05:53 +09:00
parent 6c172f7843
commit f9380683f8

View File

@ -272,8 +272,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;