[Modify] Polish it

This commit is contained in:
sta 2021-11-18 20:16:43 +09:00
parent 7e633dace8
commit 7b80d2e8f5

View File

@ -1118,8 +1118,10 @@ namespace WebSocketSharp.Server
public bool PingTo (string message, string id) public bool PingTo (string message, 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);
} }