[Modify] Polish it

This commit is contained in:
sta 2021-11-19 19:40:26 +09:00
parent 636e61e8b9
commit 838845f342

View File

@ -1220,8 +1220,10 @@ namespace WebSocketSharp.Server
public void SendTo (string data, string id) public void SendTo (string data, string id)
{ {
IWebSocketSession session; IWebSocketSession session;
if (!TryGetSession (id, out session)) { if (!TryGetSession (id, out session)) {
var msg = "The session could not be found."; var msg = "The session could not be found.";
throw new InvalidOperationException (msg); throw new InvalidOperationException (msg);
} }