[Modify] Polish it

This commit is contained in:
sta 2021-11-21 17:34:45 +09:00
parent 9f519e0646
commit 78e15a566e

View File

@ -1432,8 +1432,10 @@ namespace WebSocketSharp.Server
public void SendToAsync (string data, string id, Action<bool> completed) public void SendToAsync (string data, string id, Action<bool> completed)
{ {
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);
} }