[Modify] Polish it
This commit is contained in:
parent
76eb7d157c
commit
d732d88ba2
@ -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] != '.';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user