mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 15:53:42 +01:00
nameof instead of GetType().Name
This commit is contained in:
@@ -38,9 +38,9 @@ public sealed class ConnectionPool : IDisposable
|
||||
|
||||
return new ManagedConnection(_connections.Take(), this);
|
||||
|
||||
void ThrowObjectDisposedException()
|
||||
static void ThrowObjectDisposedException()
|
||||
{
|
||||
throw new ObjectDisposedException(GetType().Name);
|
||||
throw new ObjectDisposedException(nameof(ConnectionPool));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user