mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Remove unnecessary conditionals
This commit is contained in:
@@ -259,8 +259,8 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
var beatmapSets = getBeatmapSets(allowProtectedTracks);
|
||||
|
||||
playableSet = beatmapSets.TakeWhile(i => !i.Value.Equals(current?.BeatmapSetInfo)).LastOrDefault(s => !s.Value.Protected || allowProtectedTracks)
|
||||
?? beatmapSets.LastOrDefault(s => !s.Value.Protected || allowProtectedTracks);
|
||||
playableSet = beatmapSets.TakeWhile(i => !i.Value.Equals(current?.BeatmapSetInfo)).LastOrDefault()
|
||||
?? beatmapSets.LastOrDefault();
|
||||
}
|
||||
|
||||
if (playableSet != null)
|
||||
|
||||
Reference in New Issue
Block a user