From 2df1ee86c119dcda0328a6f6d0c126a00a80b200 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 4 Oct 2017 19:02:35 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocket.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 195fc7e1..8398731c 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -945,8 +945,7 @@ namespace WebSocketSharp { message = null; - Func cond = protocol => protocol == null - || protocol.Length == 0 + Func cond = protocol => protocol.IsNullOrEmpty () || !protocol.IsToken (); if (protocols.Contains (cond)) {