mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
nameof instead of GetType().Name
This commit is contained in:
parent
0d67901e37
commit
8e1f0d53c1
@ -38,9 +38,9 @@ public sealed class ConnectionPool : IDisposable
|
|||||||
|
|
||||||
return new ManagedConnection(_connections.Take(), this);
|
return new ManagedConnection(_connections.Take(), this);
|
||||||
|
|
||||||
void ThrowObjectDisposedException()
|
static void ThrowObjectDisposedException()
|
||||||
{
|
{
|
||||||
throw new ObjectDisposedException(GetType().Name);
|
throw new ObjectDisposedException(nameof(ConnectionPool));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user