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

@@ -186,10 +186,7 @@ namespace Emby.Server.Implementations.Data
protected void CheckDisposed()
{
if (_disposed)
{
throw new ObjectDisposedException(GetType().Name, "Object has been disposed and cannot be accessed.");
}
ObjectDisposedException.ThrowIf(_disposed, this);
}
/// <inheritdoc />