[Modify] Polish it

This commit is contained in:
sta 2021-11-21 17:27:32 +09:00
parent 818b5df9ba
commit 2c4b23f20f

View File

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