1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Remove unnecessary detach operation

This commit is contained in:
Dean Herbert 2022-01-19 15:00:05 +09:00
parent 64fe7d8dd3
commit 4235fb317d

View File

@ -209,7 +209,7 @@ namespace osu.Game.Collections
string checksum = sr.ReadString();
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum)?.Detach();
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum);
if (beatmap != null)
collection.Beatmaps.Add(beatmap);
}