mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Remove redundant conditional access
This commit is contained in:
parent
c1e9b6d4ca
commit
d1a50ff85b
@ -56,7 +56,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
return Empty();
|
||||
|
||||
// prefer online cover where available.
|
||||
if (model?.BeatmapSet is IBeatmapSetOnlineInfo online)
|
||||
if (model.BeatmapSet is IBeatmapSetOnlineInfo online)
|
||||
return new OnlineBeatmapSetCover(online, beatmapSetCoverType);
|
||||
|
||||
if (model is BeatmapInfo localModel)
|
||||
|
Loading…
Reference in New Issue
Block a user