Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
ed05ae683e
commit
387fdb0f13
|
@ -139,11 +139,6 @@ namespace Emby.Server.Implementations.AppBase
|
|||
/// <typeparam name="T">Class to register.</typeparam>
|
||||
public virtual void RegisterConfiguration<T>() where T : IConfigurationFactory
|
||||
{
|
||||
if (!typeof(IConfigurationFactory).IsAssignableFrom(typeof(T)))
|
||||
{
|
||||
throw new ArgumentException("Parameter does not implement IConfigurationFactory");
|
||||
}
|
||||
|
||||
IConfigurationFactory factory = (IConfigurationFactory)Activator.CreateInstance(typeof(T));
|
||||
|
||||
if (_configurationFactories == null)
|
||||
|
|
Loading…
Reference in New Issue
Block a user