mirror of
https://github.com/osukey/osukey.git
synced 2025-05-02 20:27:27 +09: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)
|
public void Invalidate(BeatmapSetInfo info)
|
||||||
{
|
{
|
||||||
if (info.Beatmaps == null) return;
|
|
||||||
|
|
||||||
foreach (var b in info.Beatmaps)
|
foreach (var b in info.Beatmaps)
|
||||||
Invalidate(b);
|
Invalidate(b);
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Music
|
|||||||
|
|
||||||
filter.Search.OnCommit += (sender, newText) =>
|
filter.Search.OnCommit += (sender, newText) =>
|
||||||
{
|
{
|
||||||
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
|
BeatmapInfo toSelect = list.FirstVisibleSet?.Beatmaps.FirstOrDefault();
|
||||||
|
|
||||||
if (toSelect != null)
|
if (toSelect != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user