1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Remove duplicate condition test

This commit is contained in:
Paul Teng 2018-09-20 22:32:24 -04:00
parent 1644719893
commit 654345f380

View File

@ -536,8 +536,6 @@ namespace osu.Game.Screens.Select
private void delete(BeatmapSetInfo beatmap)
{
if (beatmap == null) return;
// Null check because no beatmaps actually causes beatmap.Beatmaps to be null
if (beatmap == null || beatmap.ID <= 0) return;
dialogOverlay?.Push(new BeatmapDeleteDialog(beatmap));
}