[Modify] Polish it

This commit is contained in:
sta 2021-11-17 19:43:11 +09:00
parent 46b5765817
commit 8fbee675c9

View File

@ -1036,8 +1036,10 @@ namespace WebSocketSharp.Server
public void CloseSession (string id, CloseStatusCode code, string reason) public void CloseSession (string id, CloseStatusCode code, string reason)
{ {
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);
} }