mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Fix cases of known-non-null
This commit is contained in:
parent
a3fdab34d5
commit
a7853fc9cc
@ -55,8 +55,6 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
public void Invalidate(BeatmapSetInfo info)
|
||||
{
|
||||
if (info.Beatmaps == null) return;
|
||||
|
||||
foreach (var b in info.Beatmaps)
|
||||
Invalidate(b);
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Music
|
||||
|
||||
filter.Search.OnCommit += (sender, newText) =>
|
||||
{
|
||||
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
|
||||
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps.FirstOrDefault();
|
||||
|
||||
if (toSelect != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user