aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/AppBase/ConfigurationHelper.cs')
-rw-r--r--Emby.Server.Implementations/AppBase/ConfigurationHelper.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/AppBase/ConfigurationHelper.cs b/Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
index b0a14f43d..6c425c7fb 100644
--- a/Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
+++ b/Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
@@ -36,8 +36,7 @@ namespace Emby.Server.Implementations.AppBase
}
catch (Exception)
{
- var instanceConfiguration = Activator.CreateInstance(type);
- configuration = instanceConfiguration ?? throw new ResourceNotFoundException(nameof(instanceConfiguration));
+ configuration = Activator.CreateInstance(type) ?? throw new ResourceNotFoundException(nameof(type));
}
using var stream = new MemoryStream(buffer?.Length ?? 0);