Enable more warnings as errors (#11288)

This commit is contained in:
Bond-009
2024-04-13 01:45:01 +02:00
committed by GitHub
parent 134bf7a6a5
commit 7d28d08e08
9 changed files with 27 additions and 26 deletions

View File

@@ -159,10 +159,7 @@ namespace Emby.Server.Implementations.Session
private void CheckDisposed()
{
if (_disposed)
{
throw new ObjectDisposedException(GetType().Name);
}
ObjectDisposedException.ThrowIf(_disposed, this);
}
private void OnSessionStarted(SessionInfo info)