From 8359eadb8de77985638360356d6c5a04da71d9f1 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 16 Dec 2015 15:57:10 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocketFrame.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/WebSocketFrame.cs b/websocket-sharp/WebSocketFrame.cs index c81720fd..da969787 100644 --- a/websocket-sharp/WebSocketFrame.cs +++ b/websocket-sharp/WebSocketFrame.cs @@ -463,12 +463,12 @@ Extended Payload Length: {7} // Check if valid header. var err = !opcode.IsSupported () ? "An unsupported opcode." - : opcode.IsControl () && fin == Fin.More - ? "A control frame is fragmented." - : opcode.IsControl () && payloadLen > 125 - ? "A control frame has a long payload length." - : !opcode.IsData () && rsv1 == Rsv.On - ? "A non data frame is compressed." + : !opcode.IsData () && rsv1 == Rsv.On + ? "A non data frame is compressed." + : opcode.IsControl () && fin == Fin.More + ? "A control frame is fragmented." + : opcode.IsControl () && payloadLen > 125 + ? "A control frame has a long payload length." : null; if (err != null)