Fix cases of known-non-null

This commit is contained in:
Dean Herbert 2021-11-24 14:26:23 +09:00
parent a3fdab34d5
commit a7853fc9cc
2 changed files with 1 additions and 3 deletions

View File

@ -55,8 +55,6 @@ public WorkingBeatmapCache(ITrackStore trackStore, AudioManager audioManager, IR
public void Invalidate(BeatmapSetInfo info)
{
if (info.Beatmaps == null) return;
foreach (var b in info.Beatmaps)
Invalidate(b);
}

View File

@ -77,7 +77,7 @@ private void load(OsuColour colours, Bindable<WorkingBeatmap> beatmap)
filter.Search.OnCommit += (sender, newText) =>
{
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps.FirstOrDefault();
if (toSelect != null)
{