mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
8e03cee673
commit
7488aac1d6
@ -222,10 +222,8 @@ public static bool AddConnection(NetworkConnectionToClient conn)
|
||||
}
|
||||
|
||||
/// <summary>Removes a connection by connectionId. Returns true if removed.</summary>
|
||||
public static bool RemoveConnection(int connectionId)
|
||||
{
|
||||
return connections.Remove(connectionId);
|
||||
}
|
||||
public static bool RemoveConnection(int connectionId) =>
|
||||
connections.Remove(connectionId);
|
||||
|
||||
// called by LocalClient to add itself. don't call directly.
|
||||
// TODO consider internal setter instead?
|
||||
|
Loading…
Reference in New Issue
Block a user