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