Revert "Add temporary accounting for tests with null files"

This reverts commit e52c0a34f8.
This commit is contained in:
Dean Herbert
2021-05-28 14:33:04 +09:00
parent f1b5aced6f
commit b349ff8693

View File

@ -293,11 +293,7 @@ namespace osu.Game.Beatmaps
if (beatmapInfo?.BeatmapSet == null || beatmapInfo == DefaultBeatmap?.BeatmapInfo)
return DefaultBeatmap;
// files may be null in some tests.
if (beatmapInfo.BeatmapSet?.Files == null)
return DefaultBeatmap;
if (beatmapInfo.BeatmapSet.Files.Count == 0)
if (beatmapInfo.BeatmapSet.Files == null)
{
var info = beatmapInfo;
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);