[Modify] Polish it

This commit is contained in:
sta 2021-11-19 19:35:01 +09:00
parent 8532a1f44e
commit e284fbde64

View File

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