[Modify] Polish it

This commit is contained in:
sta 2020-06-16 19:42:04 +09:00
parent 405e409d90
commit d6963e2bfd

View File

@ -793,8 +793,11 @@ namespace WebSocketSharp.Net
private static string checkName (string name)
{
if (name == null)
throw new ArgumentNullException ("name");
if (name == null) {
var msg = "The name is null.";
throw new ArgumentNullException ("name", msg);
}
if (name.Length == 0) {
var msg = "The name is an empty string.";