[Modify] Polish it
This commit is contained in:
parent
405e409d90
commit
d6963e2bfd
@ -793,8 +793,11 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
private static string checkName (string name)
|
private static string checkName (string name)
|
||||||
{
|
{
|
||||||
if (name == null)
|
if (name == null) {
|
||||||
throw new ArgumentNullException ("name");
|
var msg = "The name is null.";
|
||||||
|
|
||||||
|
throw new ArgumentNullException ("name", msg);
|
||||||
|
}
|
||||||
|
|
||||||
if (name.Length == 0) {
|
if (name.Length == 0) {
|
||||||
var msg = "The name is an empty string.";
|
var msg = "The name is an empty string.";
|
||||||
|
Loading…
Reference in New Issue
Block a user