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

Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
pull/4480/head
Cody Robibero 4 years ago committed by GitHub
parent 95ebb9a55a
commit 24ac5cc353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save