mirror of https://github.com/ppy/osu
Fix cases of known-non-null
This commit is contained in:
parent
a3fdab34d5
commit
a7853fc9cc
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue