mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:52:55 +08:00
Use OfType
instead of forceful nullability
This commit is contained in:
parent
6abbc7dc28
commit
93038ce496
@ -119,7 +119,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
CarouselRoot newRoot = new CarouselRoot(this);
|
||||
|
||||
newRoot.AddItems(beatmapSets.Select(s => createCarouselSet(s.Detach())).Where(g => g != null)!);
|
||||
newRoot.AddItems(beatmapSets.Select(s => createCarouselSet(s.Detach())).OfType<CarouselBeatmapSet>());
|
||||
|
||||
root = newRoot;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user