Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
BaronGreenback 2020-10-11 23:50:36 +01:00 committed by GitHub
parent ed05ae683e
commit 387fdb0f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)