[Modify] Polish it

This commit is contained in:
sta 2019-02-06 21:56:58 +09:00
parent 820fa050a7
commit 3e14ce12c7

View File

@ -754,13 +754,11 @@ namespace WebSocketSharp.Net
// From server to client // From server to client
internal string ToResponseString () internal string ToResponseString ()
{ {
return _name.Length > 0 return _name.Length == 0
? ( ? String.Empty
_version == 0 : _version == 0
? toResponseStringVersion0 () ? toResponseStringVersion0 ()
: toResponseStringVersion1 () : toResponseStringVersion1 ();
)
: String.Empty;
} }
#endregion #endregion