Update Emby.Server.Implementations/ApplicationHost.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
BaronGreenback 2020-12-23 10:24:30 +00:00 committed by GitHub
parent 1f2ecd0775
commit 66d98cb8e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,7 +462,7 @@ namespace Emby.Server.Implementations
{
// Convert to list so this isn't executed for each iteration
var parts = GetExportTypes<T>()
.Select(i => defaultFunc(i))
.Select(defaultFunc)
.Where(i => i != null)
.Cast<T>()
.ToList();