mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 21:08:27 +01:00
Use DistinctBy introduced in .NET 6
This commit is contained in:
@@ -81,8 +81,7 @@ namespace Emby.Server.Implementations.Images
|
||||
}
|
||||
|
||||
return i;
|
||||
}).GroupBy(x => x.Id)
|
||||
.Select(x => x.First());
|
||||
}).DistinctBy(x => x.Id);
|
||||
|
||||
List<BaseItem> returnItems;
|
||||
if (isUsingCollectionStrip)
|
||||
|
||||
@@ -58,8 +58,7 @@ namespace Emby.Server.Implementations.Images
|
||||
return null;
|
||||
})
|
||||
.Where(i => i is not null)
|
||||
.GroupBy(x => x.Id)
|
||||
.Select(x => x.First())
|
||||
.DistinctBy(x => x.Id)
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user