[Modify] Polish it
This commit is contained in:
parent
241659559f
commit
2df1ee86c1
@ -945,8 +945,7 @@ namespace WebSocketSharp
|
|||||||
{
|
{
|
||||||
message = null;
|
message = null;
|
||||||
|
|
||||||
Func<string, bool> cond = protocol => protocol == null
|
Func<string, bool> cond = protocol => protocol.IsNullOrEmpty ()
|
||||||
|| protocol.Length == 0
|
|
||||||
|| !protocol.IsToken ();
|
|| !protocol.IsToken ();
|
||||||
|
|
||||||
if (protocols.Contains (cond)) {
|
if (protocols.Contains (cond)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user