aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2020-11-13 13:18:31 -0700
committerGitHub <noreply@github.com>2020-11-13 13:18:31 -0700
commit24ac5cc353dd5b9930d43a5659d97037644fa58a (patch)
treee9676d7479f9d0e4621e4be15d1f935625e41f29 /Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
parent95ebb9a55ace6c544fa7fa15d0a255a5cee752a8 (diff)
Update Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
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);