[Modify] Polish it

This commit is contained in:
sta 2020-01-07 22:28:36 +09:00
parent c1ae944c65
commit 90e935f835

View File

@ -369,8 +369,10 @@ namespace WebSocketSharp.Net
return; return;
} }
if (value.Length == 0) if (value.Length == 0) {
throw new ArgumentException ("An empty string.", "value"); var msg = "An empty string.";
throw new ArgumentException (msg, "value");
}
if (!value.IsPrintable ()) { if (!value.IsPrintable ()) {
var msg = "It contains an invalid character."; var msg = "It contains an invalid character.";