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

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
BaronGreenback 2020-11-11 17:00:19 +00:00 committed by GitHub
parent 957b5df0f0
commit caea2bb862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ namespace Emby.Server.Implementations.AppBase
public virtual void RegisterConfiguration<T>()
where T : IConfigurationFactory
{
IConfigurationFactory factory = (IConfigurationFactory)Activator.CreateInstance(typeof(T));
IConfigurationFactory factory = Activator.CreateInstance<T>();
if (_configurationFactories == null)
{