Skip to content

The Free Software Media System - Server Backend & API

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

BaronGreenbackcaea2bb8623c
diff --git a/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs b/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
index 15bf92db1d..4f72c8ce15 100644
--- a/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
+++ b/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
@@ -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)
{