mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
Use DistinctBy introduced in .NET 6
This commit is contained in:
@@ -133,8 +133,7 @@ namespace Emby.Server.Implementations.IO
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.Select(GetAffectedBaseItem)
|
||||
.Where(item => item is not null)
|
||||
.GroupBy(x => x!.Id) // Removed null values in the previous .Where()
|
||||
.Select(x => x.First())!;
|
||||
.DistinctBy(x => x!.Id)!; // Removed null values in the previous .Where()
|
||||
|
||||
foreach (var item in itemsToRefresh)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user