mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Simplify an ObjectDisposedException
This commit is contained in:
@@ -600,11 +600,7 @@ namespace Tgstation.Server.Host.Components.Session
|
||||
/// <summary>
|
||||
/// Throws an <see cref="ObjectDisposedException"/> if <see cref="DisposeAsync"/> has been called.
|
||||
/// </summary>
|
||||
void CheckDisposed()
|
||||
{
|
||||
if (disposed)
|
||||
throw new ObjectDisposedException(nameof(SessionController));
|
||||
}
|
||||
void CheckDisposed() => ObjectDisposedException.ThrowIf(disposed, this);
|
||||
|
||||
/// <summary>
|
||||
/// Handle a set of bridge <paramref name="parameters"/>.
|
||||
|
||||
Reference in New Issue
Block a user