[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;
Func<string, bool> cond = protocol => protocol == null
|| protocol.Length == 0
Func<string, bool> cond = protocol => protocol.IsNullOrEmpty ()
|| !protocol.IsToken ();
if (protocols.Contains (cond)) {