[Modify] Polish it

This commit is contained in:
sta 2019-03-01 21:43:54 +09:00
parent 76eb7d157c
commit d732d88ba2

View File

@ -361,14 +361,8 @@ namespace WebSocketSharp.Net
}
set {
if (value.IsNullOrEmpty ()) {
_domain = String.Empty;
ExactDomain = true;
}
else {
_domain = value;
ExactDomain = value[0] != '.';
}
_domain = value ?? String.Empty;
ExactDomain = _domain.Length == 0 || _domain[0] != '.';
}
}