[Modify] Polish it

This commit is contained in:
sta 2017-10-04 19:02:35 +09:00
parent 241659559f
commit 2df1ee86c1

View File

@ -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)) {